-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Add a setting to switch to full vue build (with compiler) #368
Comments
With 0.20.6+ you can just do: alias: {
'vue': 'vue/dist/vue.esm-bundler.js'
} |
@yyx990803 works with |
@husayt please provide a reproduction in a separate issue. |
This does not work in Vite 2.0.0-beta.27.
I tried to find an option in https://github.com/vitejs/vite/tree/main/packages/plugin-vue, but I could not find an option there. How to set a build with compiler? |
Should be fixed by 54dab71, release soon |
Is your feature request related to a problem? Please describe.
Currently Vite is using runtime only build of vue (
vue.runtime.esm-bundler.js
)Describe the solution you'd like
Having an option in vite config to switch between runtime only and full (with compiler) vue bundles.
Additional context
While it should be avoided, there are a number of usecases for compiling vue templates on the fly and it would be great if vue could support that. For example, we need a compiler build to run this simple example from vue website
The text was updated successfully, but these errors were encountered: