vue3-core/playground/vite.prod.config.ts

26 lines
463 B
TypeScript

import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import * as CompilerSFC from '@vue/compiler-sfc'
export default defineConfig({
build: {
modulePreload: false,
target: 'esnext',
minify: false,
terserOptions: {
compress: {
pure_getters: true,
},
},
},
clearScreen: false,
plugins: [
Vue({
compiler: CompilerSFC,
features: {
optionsAPI: false,
},
}),
],
})