Skip to content

Commit 657af90

Browse files
test: fix
1 parent fe1faa3 commit 657af90

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ Default: `false`
562562

563563
> **Note**
564564
>
565-
> This options will work only when you set `namedExport` to `true` in `css-loader`
565+
> This option will work only when you set `namedExport` to `true` in `css-loader`
566566
567567
By default, `mini-css-extract-plugin` generates JS modules based on the `esModule` and `namedExport` options in `css-loader`.
568568
Using the `esModule` and `namedExport` options will allow you to better optimize your code.

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

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3+
exports[`validate options should throw an error on the "defaultExport" option with "1" value 1`] = `
4+
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
5+
- options.defaultExport should be a boolean.
6+
-> Duplicate the named export with CSS modules locals to the default export (only when \`esModules: true\` for css-loader).
7+
-> Read more at https://github.com/webpack-contrib/mini-css-extract-plugin#defaultexports"
8+
`;
9+
310
exports[`validate options should throw an error on the "esModule" option with "1" value 1`] = `
411
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
512
- options.esModule should be a boolean.

0 commit comments

Comments
 (0)