File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ module.exports = function genStyleInjectionCode (
4040
4141 // `(vue-)style-loader` exports the name-to-hash map directly
4242 // `css-loader` exports it in `.locals`
43- const locals = `(style${ i } .locals || style${ i } )`
43+ const locals = `(style${ i } .default || style ${ i } . locals || style${ i } )`
4444 const name = JSON . stringify ( moduleName )
4545
4646 if ( ! needsHotReload ) {
@@ -81,7 +81,7 @@ module.exports = function genStyleInjectionCode (
8181 // do not generate requests for empty styles
8282 if ( isNotEmptyStyle ( style ) ) {
8383 const request = genStyleRequest ( style , i )
84- styleImportsCode += `import style${ i } from ${ request } \n`
84+ styleImportsCode += `import * as style${ i } from ${ request } \n`
8585 if ( style . module ) genCSSModulesCode ( style , request , i )
8686 }
8787 } )
Original file line number Diff line number Diff line change 7373 "json" : " ^9.0.6" ,
7474 "lint-staged" : " ^7.0.0" ,
7575 "markdown-loader" : " ^2.0.2" ,
76- "memfs" : " ^3.1.2 " ,
76+ "memfs" : " ^3.2.3 " ,
7777 "mini-css-extract-plugin" : " ^0.4.1" ,
7878 "node-sass" : " ^4.7.2" ,
7979 "normalize-newline" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -4935,10 +4935,10 @@ fs-extra@^5.0.0:
49354935 jsonfile "^4.0.0"
49364936 universalify "^0.1.0"
49374937
4938- 4939- version "1.0.0 "
4940- resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.0 .tgz#b1fe36b2d8a78463fd0b8fd1463b355952743bd0 "
4941- integrity sha512-nxkkzQ5Ga+ETriXxIof4TncyMSzrV9jFIF+kGN16nw5CiAdWAnG/2FgM7CHhRenW1EBiDx+r1tf/P78HGKCgnA ==
4938+ 4939+ version "1.0.3 "
4940+ resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.3 .tgz#ae3ac92d53bb328efe0e9a1d9541f6ad8d48e2d3 "
4941+ integrity sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q ==
49424942
49434943fs-write-stream-atomic@^1.0.8 :
49444944 version "1.0.10"
@@ -7444,12 +7444,12 @@ mem@^4.0.0:
74447444 mimic-fn "^2.0.0"
74457445 p-is-promise "^2.0.0"
74467446
7447- memfs@^3.1.2 :
7448- version "3.1.2 "
7449- resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.1.2. tgz#2bb51600dacec67ed35677b1185abb708b7d2ad6 "
7450- integrity sha512-YubKuE+RGSdpZcRq2Nih8HcHj3LrqndsDFNB9IFjrgwzdM4eq+fImlDMfNm/HdRhYRkLdUecHGIpdz+wyrqlDg ==
7447+ memfs@^3.2.3 :
7448+ version "3.2.3 "
7449+ resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.2.3. tgz#a5cc1b11a0608f4e38feea9a94b957acba820af3 "
7450+ integrity sha512-vDKa1icg0KDNzcOPBPAduFFb3YL+pLbQ/3hW7rRgUKpoliTAkPmVV7r/3qJ6YqKyIXEDhzsdSvLlEh137AfWUA ==
74517451 dependencies :
7452- fs-monkey "1.0.0 "
7452+ fs-monkey "1.0.3 "
74537453
74547454memory-fs@^0.4.0, memory-fs@^0.4.1 :
74557455 version "0.4.1"
You can’t perform that action at this time.
0 commit comments