How i can use vue.runtime.esm-bundler.js? #8107
Unanswered
projct1
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
defineConfig({
resolve: {
alias:{
vue: 'xxxxx/vue.runtime.esm-bundler.js'
}
},
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hiho!
I'm using vuejs 3 along with the Vite builder and
@vitejs/plugin-vue plugin
.From reading the documentation, I realized that there are two kinds of vue bundles: vue.esm-bundler.js containing a template compiler and vue.runtime.esm-bundler.js without a compiler (used by default).
How do I set up template precompilation so that my final js bundle has a more lightweight
vue.runtime.esm-bundler.js
?Now, when connecting this assembly, an error is displayed in the console:
runtime-core.esm-bundler.js:40 [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
Beta Was this translation helpful? Give feedback.
All reactions