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

Commit

Permalink
fix: description on the esModule option (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
smondal authored and evilebottnawi committed Jan 6, 2020
1 parent 4301f87 commit a2f127d
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 @@ -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
Original file line number Diff line number Diff line change
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

0 comments on commit a2f127d

Please sign in to comment.