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

Commit a2f127d

Browse files
smondalevilebottnawi
authored andcommitted
fix: description on the esModule option (#204)
1 parent 4301f87 commit a2f127d

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/options.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
]
4040
},
4141
"esModule": {
42+
"description": "By default, url-loader generates JS modules that use the ES modules syntax.",
4243
"type": "boolean"
4344
}
4445
},

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

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

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

0 commit comments

Comments
 (0)