chore: lodash 改为 lodash-es, 采用按需引入的方式使用

This commit is contained in:
wangxuefeng
2025-02-05 15:12:26 +08:00
parent de679d4289
commit dd8f7b52d2
7 changed files with 6757 additions and 47 deletions

50
farm.config.ts Normal file
View File

@@ -0,0 +1,50 @@
import { defineConfig } from "@farmfe/core";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
// import { fileURLToPath, URL } from "node:url";
// import yargsParser from "yargs-parser";
// const argv = yargsParser(process.argv.slice(2));
console.log(process.env.DEV_ENV);
// let base: string;
// switch (argv.mode) {
// case "staging":
// case "test":
// base = "https://custom-chart.shiyue.com/";
// break;
// case "production":
// base = "https://custom-chart.shiyuegame.com/";
// break;
// default:
// base = "http://localhost:8080/";
// }
// if (process.env.DEV_ENV === "development") {
// base = "http://localhost:8080/";
// }
export default defineConfig({
// compilation: {
// output: {
// path: "./dist",
// publicPath: base,
// filename: "[name]-ycode-[hash:8].[ext]",
// },
// sourcemap: false,
// },
vitePlugins: [vue(), vueJsx()],
// resolve: {
// alias: {
// "@": fileURLToPath(new URL("./src", import.meta.url)),
// },
// },
// define: {
// _BASE_HOST_: `'${base}'`,
// },
// server: {
// hmr: true,
// host: "0.0.0.0",
// port: 8080,
// },
});