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

fix(deps): fixed security issue and added description on esModule #204

Merged
merged 2 commits into from Jan 6, 2020
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.
Jump to
Jump to file
Failed to load files.
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
Expand Up @@ -39,6 +39,7 @@
]
},
"esModule": {
"description": "By default, url-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
Expand Up @@ -2,7 +2,8 @@

exports[`validate options should throw an error on the "esModule" option with "true" value 1`] = `
"Invalid options object. URL 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, url-loader generates JS modules that use the ES modules syntax."
`;

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