Skip to content

Reproduction of Vue bug with css-loader v4.0.0+

Notifications You must be signed in to change notification settings

privatenumber/vue-css-loader-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css-loader v4.0.0+ bug with vue-style-loader

css-loader started to enable esModule by default in v4.0.0, which breaks the way vue-style-loader handles the CSS file exported by css-loader.

Specifically, the list here is now an ES module instead of an array, where there default property must be read.

Adding an ESM interop should fix this.

Reproduction steps

  1. Install deps: $ npm ci
  2. Build & start server: $ npm start
  3. Notice there are no styles applied despite styles in /src/App.vue
  4. Go to webpack.config.js and uncomment L36
  5. Rebuild and start server: $ npm start
  6. Make sure your cache is disabled, but the styles should work

About

Reproduction of Vue bug with css-loader v4.0.0+

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published