File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,19 @@ function cloneRule (rule, normalizedRule) {
145145 return res
146146}
147147
148- const reuseIdentWhitelist = / c s s - l o a d e r /
148+ const reuseIdentWhitelist = [
149+ 'css-loader' ,
150+ '(vue-)?style-loader' ,
151+ 'postcss-loader' ,
152+ 'extract-text-webpack-plugin' ,
153+ 'mini-css-extract-plugin'
154+ ]
155+
156+ const reuseIdentPattern = new RegExp ( `(${ reuseIdentWhitelist . join ( '|' ) } )` )
149157
150158function cleanIdent ( use ) {
151159 if ( use . ident ) {
152- if ( reuseIdentWhitelist . test ( use . loader ) ) {
160+ if ( reuseIdentPattern . test ( use . loader ) ) {
153161 // Reuse options ident, so that imports from within css-loader would get the
154162 // exact same request prefixes, avoiding duplicated modules (#1199)
155163 use . options . ident = use . ident
You can’t perform that action at this time.
0 commit comments