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

fix(schema): added description on esModule #358

Merged
merged 2 commits into from
Dec 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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