Skip to content

Conversation

privatenumber
Copy link

What kind of change does this PR introduce?

Fixes #46
Repro: https://github.com/privatenumber/vue-css-loader-bug/

Did you add tests for your changes?
No. This adds a change to pitch, which isn't tested in this repo.
I tested locally though in my dev env.

If relevant, did you update the README?
Not relevant. Happens behind the scenes.

Summary
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 fixes this.

Does this PR introduce a breaking change?

Nope.

Other information

@foxxyz
Copy link

foxxyz commented Sep 21, 2020

This is a duplicate of #47

@privatenumber
Copy link
Author

lol should've checked before opening a PR. Thanks @foxxyz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

css-loader 4.x.x support?

2 participants