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(compiler): use transformed css to check changed imports of globalStyle #2422

Merged
merged 2 commits into from May 12, 2020

Conversation

simonhaenisch
Copy link
Contributor

Proposed Change:

When checking for changed CSS imports of the globalStyle, it now uses the transformation result of the plugins that are applied to the globalStyle (e. g. stylus or sass).

For example, I'm using @stencil/stylus, and my globalStyle is src/global/app.styl. Previously it would read config.globalStyle from the file system, a .styl file in this case, but treat it as CSS. That could cause an error where a regex would fail that would extract the css import paths (because in stylus it's possible to omit semicolons).

@adamdbradley adamdbradley merged commit 7742a87 into master May 12, 2020
@adamdbradley adamdbradley deleted the fix-global-style-changed-imports-check branch May 12, 2020 14:46
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.

None yet

2 participants