Skip to content

Commit 06e97ba

Browse files
vanhoavnyyx990803
authored andcommitted
remove importLoaders from css modules default options (#932)
* remove DEFAULT_OPTIONS * revert back DEFAULT_OPTIONS for modules option
1 parent d4098b7 commit 06e97ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/loader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ module.exports = function (content) {
481481
if (!part.module) return loader
482482
const option = options.cssModules || {}
483483
const DEFAULT_OPTIONS = {
484-
modules: true,
485-
importLoaders: true
484+
modules: true
486485
}
487486
const OPTIONS = {
488-
localIdentName: '[hash:base64]'
487+
localIdentName: '[hash:base64]',
488+
importLoaders: true
489489
}
490490
return loader.replace(/((?:^|!)css(?:-loader)?)(\?[^!]*)?/, (m, $1, $2) => {
491491
// $1: !css-loader

0 commit comments

Comments
 (0)