瀏覽代碼

feature(nuxt): добавлен кастомный элемент в конфиг

horanchikk 11 月之前
父節點
當前提交
431f16188b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      nuxt.config.ts

+ 6 - 0
nuxt.config.ts

@@ -46,4 +46,10 @@ export default defineNuxtConfig({
       API_URL: process.env.API_URL || "http://localhost:8000"
     }
   },
+
+  vue: {
+    compilerOptions: {
+      isCustomElement: (tag) => ['lottie-player'].includes(tag)
+    }
+  }
 })