💄: 还原layer项目babel配置
This commit is contained in:
parent
892722860d
commit
aaa072db12
@ -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"],
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user