|
@@ -5,6 +5,7 @@ import AutoImport from 'unplugin-auto-import/vite'
|
|
|
import Components from 'unplugin-vue-components/vite'
|
|
|
import glsl from 'vite-plugin-glsl'
|
|
|
import UnoCSS from 'unocss/vite'
|
|
|
+import { templateCompilerOptions } from '@tresjs/core'
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
export default defineConfig({
|
|
@@ -14,11 +15,7 @@ export default defineConfig({
|
|
|
script: {
|
|
|
propsDestructure: true,
|
|
|
},
|
|
|
- template: {
|
|
|
- compilerOptions: {
|
|
|
- isCustomElement: tag => (tag.startsWith('Tres') && tag !== 'TresCanvas' && tag !== 'TresLeches') || tag === 'primitive',
|
|
|
- },
|
|
|
- },
|
|
|
+ ...templateCompilerOptions
|
|
|
}),
|
|
|
AutoImport({
|
|
|
dts: true,
|