Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 5ffac2e

Browse files
smondalevilebottnawi
authored andcommittedDec 30, 2019
refactor: added description on esModule (#358)
1 parent 190829e commit 5ffac2e

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed
 

‎package-lock.json

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/options.json

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
]
5959
},
6060
"esModule": {
61+
"description": "By default, file-loader generates JS modules that use the ES modules syntax.",
6162
"type": "boolean"
6263
}
6364
},

‎test/__snapshots__/validate-options.test.js.snap

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ exports[`validate options should throw an error on the "emitFile" option with "t
1414

1515
exports[`validate options should throw an error on the "esModule" option with "true" value 1`] = `
1616
"Invalid options object. File Loader has been initialised using an options object that does not match the API schema.
17-
- options.esModule should be a boolean."
17+
- options.esModule should be a boolean.
18+
-> By default, file-loader generates JS modules that use the ES modules syntax."
1819
`;
1920

2021
exports[`validate options should throw an error on the "name" option with "true" value 1`] = `

0 commit comments

Comments
 (0)
This repository has been archived.