فهرست منبع

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

ZiB 4 ماه پیش
والد
کامیت
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 { defineConfig } from 'vite'
+import path from 'path'
 
 
 export default defineConfig({
 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: {
   build: {
     rollupOptions: {
     rollupOptions: {
       input: {
       input: {