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

Commit

Permalink
refactor: added description on esModule (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
smondal authored and evilebottnawi committed Dec 30, 2019
1 parent 190829e commit 5ffac2e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
]
},
"esModule": {
"description": "By default, file-loader generates JS modules that use the ES modules syntax.",
"type": "boolean"
}
},
Expand Down
3 changes: 2 additions & 1 deletion test/__snapshots__/validate-options.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ exports[`validate options should throw an error on the "emitFile" option with "t

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

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

0 comments on commit 5ffac2e

Please sign in to comment.