underfin / vite-plugin-vue2

Vue2 plugin for Vite
621 stars 84 forks source link

How to enable runtime compiler? #100

Closed Thomasan1999 closed 3 years ago

Thomasan1999 commented 3 years ago

I'm using components which are sent from API and loaded from Vue.component(), so I need a runtime compiler for that. With Webpack, I could use the option runtimeCompiler: true. Can I achieve the same thing with this plugin?

underfin commented 3 years ago

Please see https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only, you can config alias to use vue-core with compiler.