vue3-core/playground/vite.config.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
515 B
TypeScript
Raw Normal View History

2023-11-30 04:44:28 +08:00
import { defineConfig } from 'vite'
2023-11-17 03:01:19 +08:00
import Inspect from 'vite-plugin-inspect'
2023-11-30 04:44:28 +08:00
import { DevPlugin } from './setup/dev'
import Vue from '@vitejs/plugin-vue'
import * as CompilerVapor from '@vue/compiler-vapor'
import * as CompilerSFC from '@vue/compiler-sfc'
2023-11-17 03:01:19 +08:00
export default defineConfig({
2023-11-17 17:35:49 +08:00
build: {
2023-12-29 22:11:33 +08:00
target: 'esnext',
2023-11-17 17:35:49 +08:00
},
2023-11-23 23:42:08 +08:00
clearScreen: false,
plugins: [
Vue({
template: {
2023-12-29 22:11:33 +08:00
compiler: CompilerVapor as any,
},
2023-12-29 22:11:33 +08:00
compiler: CompilerSFC,
}),
DevPlugin(),
2023-12-29 22:11:33 +08:00
Inspect(),
],
2023-11-17 03:01:19 +08:00
})