Просмотр исходного кода

Alias vue to esm-bundler build so in-DOM templates compile correctly

ZiB 4 месяцев назад
Родитель
Сommit
5cd3c02d89
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      room_cal/vue/vite.config.js

+ 7 - 0
room_cal/vue/vite.config.js

@@ -1,6 +1,13 @@
 import { defineConfig } from 'vite'
+import path from 'path'
 
 export default defineConfig({
+  resolve: {
+    alias: {
+      // Include the template compiler so in-DOM templates render correctly
+      'vue': path.resolve('./node_modules/vue/dist/vue.esm-bundler.js'),
+    }
+  },
   build: {
     rollupOptions: {
       input: {