Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 2, 2024
1 parent fe1faa3 commit 657af90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ Default: `false`

> **Note**
>
> This options will work only when you set `namedExport` to `true` in `css-loader`
> This option will work only when you set `namedExport` to `true` in `css-loader`
By default, `mini-css-extract-plugin` generates JS modules based on the `esModule` and `namedExport` options in `css-loader`.
Using the `esModule` and `namedExport` options will allow you to better optimize your code.
Expand Down
7 changes: 7 additions & 0 deletions test/__snapshots__/validate-loader-options.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

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

exports[`validate options should throw an error on the "esModule" option with "1" value 1`] = `
"Invalid options object. Mini CSS Extract Plugin Loader has been initialized using an options object that does not match the API schema.
- options.esModule should be a boolean.
Expand Down

0 comments on commit 657af90

Please sign in to comment.