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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: run vite preprocessors first #189

Merged
merged 3 commits into from
Oct 9, 2021
Merged

feat: run vite preprocessors first #189

merged 3 commits into from
Oct 9, 2021

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Oct 9, 2021

When useVitePreprocess is true, the VIte preprocessors will run as a markup preprocessor to gain higher priority than script or style phase preprocessor. It will also be prepended to the preprocess array instead of appended, to run before user-defined preprocessors.

Also updated some comments that I missed out in the previous PR.

This should be a safe change as useVitePreprocess is still experimental. And would allow svelte preprocessors that run svelte.parse in the markup phase to work, e.g. svelte-preprocess-import-assets and svelte-fast-dimension 馃槈

@dominikg dominikg merged commit 405298a into main Oct 9, 2021
@dominikg dominikg deleted the vite-preprocess-order branch October 9, 2021 12:22
@github-actions github-actions bot mentioned this pull request Oct 9, 2021
@github-actions github-actions bot mentioned this pull request Jul 13, 2022
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