We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When building for development all template compiler warnings are treated as errors instead of warning and will break the build.
Examples for such warnings are:
text \"Some comment\" between v-if and v-else(-if) will be ignored.
When having a template like this:
<component v-if="foo" /> <!-- Some comment --> <component v-else />
The text was updated successfully, but these errors were encountered:
For example it could be fixed by changing
vite-plugin-vue2/src/template.ts
Line 65 in ad7d61e
to something like:
(process.env.NODE_ENV === 'production' ? pluginContext.error : pluginContext.warn)(
As I think this warning is converted to an error somewhere more deep inside the compiler-sfc.
Sorry, something went wrong.
fix: Do not build Vite in development mode because of vue2 plugin
e2c2d88
We have comments between `v-if` and `v-else` which is not allowed. For reference see this: vitejs/vite-plugin-vue2#88 Signed-off-by: Ferdinand Thiessen <[email protected]>
No branches or pull requests
When building for development all template compiler warnings are treated as errors instead of warning and will break the build.
Examples for such warnings are:
When having a template like this:
The text was updated successfully, but these errors were encountered: