-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
unplugin-vue-i18n conflicts with unocss and causes vite build to fail when sourcemaps: true #107
Comments
Thank you for your reporting! |
Windows 10 work fine, but WSL(ubuntu) got same error. |
I've just updated the deps in the reproduction repo and confirmed that this is still an issue. |
|
Thanks, kazupon. I added a branch that uses unplugin-vue-i18n. It has the same issue. |
Hmm, this issue is difficult to resolve quickly. 🤔 I am not familiar with unocss, and I don't know if the TransformerVariantGroup transform is handling the sourcemap. 😅 The order of vite plugins in TransformerVariantGroup in unplugin-vue-i18n and unocss may have an effect. |
This is resolved with the release of unplugin-vue-i18n@3.0.0! |
Reporting a bug?
vite-plugin-vue-i18n conflicts with unocss and causes vite build to fail when sourcemaps: true
The error:
It seems that having these two things in the same file is causing the issue, though neither on its own would cause a failure:
Vue I18n SFC block:
UnoCSS Variant Group:
Expected behavior
Vite build should run as expected and output ES modules with sourcemaps
Reproduction
https://github.com/stephenhebert/vue-i18n-unocss-issue-reproduction
Issue Package
vite-plugin-vue-i18n
System Info
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: