💄: 还原layer项目babel配置

This commit is contained in:
0o张不歪o0 2022-06-25 17:05:04 +08:00
parent 892722860d
commit aaa072db12

View File

@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import { name } from "./package.json";
import babel from "@rollup/plugin-babel";
import vue from "@vitejs/plugin-vue";
import path from "path";
@ -29,6 +30,14 @@ export default defineConfig({
},
assetFileNames: "index.css",
},
plugins: [
// @ts-ignore
babel({
exclude: "node_modules/**",
extensions: [".js", ".jsx", ".ts", ".tsx", ".vue"],
presets: ["@babel/preset-env", "@babel/preset-typescript"]
}),
],
external: ["vue"],
},
},