32 lines
614 B
TypeScript
32 lines
614 B
TypeScript
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import legacy from "@vitejs/plugin-legacy";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
base: "./",
|
|
plugins: [
|
|
vue(),
|
|
legacy({
|
|
targets: [
|
|
"> 0.5%",
|
|
"last 2 versions",
|
|
"Firefox ESR",
|
|
"not dead",
|
|
"iOS >= 12",
|
|
"Android >= 5",
|
|
],
|
|
additionalLegacyPolyfills: ["regenerator-runtime/runtime"],
|
|
modernPolyfills: true,
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
},
|
|
});
|