|
@@ -2,12 +2,7 @@ import { defineConfig } from 'vite'
|
|
|
import Unocss from 'unocss/vite'
|
|
|
import svgLoader from 'vite-svg-loader'
|
|
|
import Components from 'unplugin-vue-components/vite'
|
|
|
-
|
|
|
-const whitelist = [
|
|
|
- 'TresCanvas',
|
|
|
- 'TresLeches',
|
|
|
- 'TresScene',
|
|
|
-]
|
|
|
+import { templateCompilerOptions } from '@tresjs/core'
|
|
|
|
|
|
export default defineConfig({
|
|
|
plugins: [
|
|
@@ -23,10 +18,6 @@ export default defineConfig({
|
|
|
}),
|
|
|
],
|
|
|
vue: {
|
|
|
- template: {
|
|
|
- compilerOptions: {
|
|
|
- isCustomElement: (tag: string) => tag.startsWith('Tres') && !whitelist.includes(tag) || tag === 'primitive',
|
|
|
- },
|
|
|
- },
|
|
|
+ ...templateCompilerOptions
|
|
|
}
|
|
|
})
|