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

Detect and skip WebWorker scripts #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

w1ndy
Copy link

@w1ndy w1ndy commented Jan 21, 2018

What kind of change does this PR introduce?

This PR fixes #16

Did you add tests for your changes?
No

If relevant, did you update the README?
No

Summary
When importing styles from a WebWorker script, vue-style-loader fails because there is no document in the scope. This PR implements WebWorker detection and skip style imports in these scripts.

Does this PR introduce a breaking change?

No

Other information

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.

"document is undefined" in WebWorker when importing styles from css module
1 participant