// vite.config.ts
import { defineApplicationConfig } from "file:///E:/projects/%E5%B8%82%E7%BA%A7%E5%A4%A9%E7%A9%BA%E5%9C%B0%E7%9B%91%E6%B5%8B/merge/ShiJiTianKongDiPingTai/internal/vite-config/dist/index.mjs";
import { mars3dPlugin } from "file:///E:/projects/%E5%B8%82%E7%BA%A7%E5%A4%A9%E7%A9%BA%E5%9C%B0%E7%9B%91%E6%B5%8B/merge/ShiJiTianKongDiPingTai/node_modules/.pnpm/vite-plugin-mars3d@3.1.3_rollup@3.29.4/node_modules/vite-plugin-mars3d/dist/index.js";
import path from "path";
var __vite_injected_original_dirname = "E:\\projects\\\u5E02\u7EA7\u5929\u7A7A\u5730\u76D1\u6D4B\\merge\\ShiJiTianKongDiPingTai";
var vite_config_default = defineApplicationConfig({
  overrides: {
    optimizeDeps: {
      include: [
        "echarts/core",
        "echarts/charts",
        "echarts/components",
        "echarts/renderers",
        "qrcode",
        "@iconify/iconify",
        "ant-design-vue/es/locale/zh_CN",
        "ant-design-vue/es/locale/en_US",
        "@/../lib/vform/designer.umd.js"
      ]
    },
    build: {
      /* 其他build生产打包配置省略 */
      //...
      target: "esnext",
      commonjsOptions: {
        include: /node_modules|lib/
        //这里记得把lib目录加进来，否则生产打包会报错！！
      }
    },
    server: {
      proxy: {
        "/basic-api": {
          target: "http://localhost:3000",
          changeOrigin: true,
          ws: true,
          rewrite: (path2) => path2.replace(new RegExp(`^/basic-api`), "")
          // only https
          // secure: false
        },
        "/upload": {
          target: "http://localhost:3300/upload",
          changeOrigin: true,
          ws: true,
          rewrite: (path2) => path2.replace(new RegExp(`^/upload`), "")
        }
      },
      warmup: {
        clientFiles: ["./index.html", "./src/{views,components}/*"]
      }
    },
    define: {
      "process.env": {
        BASE_URL: "/"
      }
    },
    css: {
      preprocessorOptions: {
        less: {
          javascriptEnabled: true,
          additionalData: `
          @import "${path.resolve(__vite_injected_original_dirname, "src/mars/components/mars-ui/base.less")}";
          `
        }
      }
    },
    plugins: [mars3dPlugin()]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,[encoded data, 4692 characters]
