-
Notifications
You must be signed in to change notification settings - Fork 19
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
Preprocessor only looks for imports in the first <script> tag if multiple are present #818
Comments
tivac
added a commit
that referenced
this issue
Mar 10, 2022
At least until a matching import is found, still bail on the first one for optimization simplicity reasons. Fixes #818
tivac
added a commit
that referenced
this issue
Mar 11, 2022
* feat(svelte): check every <script> At least until a matching import is found, still bail on the first one for optimization simplicity reasons. Fixes #818
Fix released as |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sveltekit components may have multiple <script> tags, and unless .mcss files are imported within the first tag, the preprocessor will fail to find the references and won't compile the associated styles:
Fails:
Works:
The text was updated successfully, but these errors were encountered: