chore(playground): enable template.vapor option

This commit is contained in:
三咲智子 Kevin Deng 2024-02-09 20:16:45 +08:00
parent edaa3a0649
commit aaf3d00f45
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect' import Inspect from 'vite-plugin-inspect'
import { DevPlugin } from './setup/dev' import { DevPlugin } from './setup/dev'
import Vue from '@vitejs/plugin-vue' import Vue from '@vitejs/plugin-vue'
import * as CompilerVapor from '@vue/compiler-vapor'
import * as CompilerSFC from '@vue/compiler-sfc' import * as CompilerSFC from '@vue/compiler-sfc'
export default defineConfig({ export default defineConfig({
@ -22,7 +21,8 @@ export default defineConfig({
plugins: [ plugins: [
Vue({ Vue({
template: { template: {
compiler: CompilerVapor as any, // @ts-expect-error
vapor: true,
}, },
compiler: CompilerSFC, compiler: CompilerSFC,
}), }),