qiankun + vite + vue3

650 阅读1分钟
# The `compilerOptions` config option is only respected when using a build of 
Vue.js that includes the runtime compiler (aka "full build"). Since you are 
using the runtime-only build, `compilerOptions` must be passed 
to `@vue/compiler-dom` in the build setup instead

[Vue warn]: The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.
- For vue-loader: pass it via vue-loader's `compilerOptions` loader option.
- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader
- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom

看了好久 才找到解决办法, 单起项目没有问题, 放在主程序下就会有问题, 把devtools