Open LittleTom opened 2 years ago
下面是一个基于本项目的` vue3-runtime-template 项目
https://github.com/mattelen/vue3-runtime-template
如果是vite启动,你需要按照下面的方法修改 vite.config.js ,亲测有效!
import { defineConfig } from 'vite'; import vue from '@vitejs/plugin-vue'; // https://vitejs.dev/config/ export default defineConfig({ resolve: { alias: { vue: 'vue/dist/vue.esm-bundler.js' } }, plugins: [ vue() ] })
Really helpful. Thank you @LittleTom.
下面是一个基于本项目的` vue3-runtime-template 项目
https://github.com/mattelen/vue3-runtime-template
如果是vite启动,你需要按照下面的方法修改 vite.config.js ,亲测有效!