Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add esm interop #48

Closed
wants to merge 1 commit into from
Closed

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