Skip to content

Commit

Permalink
chore: add vue template compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Oct 26, 2023
1 parent 9322b77 commit 61025b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import glsl from 'vite-plugin-glsl'
import { templateCompilerOptions } from '@tresjs/core'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: tag => (tag.startsWith('Tres') && tag !== 'TresCanvas') || tag === 'primitive',
},
},
...templateCompilerOptions,
}),
glsl(),
],
Expand Down

0 comments on commit 61025b4

Please sign in to comment.