Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e822d17

Browse files
committedFeb 19, 2025·
fix build
1 parent 76c447d commit e822d17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎client/packages/lowcoder/vite.config.mts

+3-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const viteConfig: UserConfig = {
8383
},
8484
output: {
8585
inlineDynamicImports: false,
86-
chunkFileNames: "[hash].js",
86+
chunkFileNames: "[name]-[hash].js",
8787
manualChunks: (id) => {
8888
if (id.includes("node_modules")) {
8989
// UI LIBRARIES
@@ -194,6 +194,7 @@ export const viteConfig: UserConfig = {
194194
},
195195
},
196196
commonjsOptions: {
197+
transformMixedEsModules : true,
197198
defaultIsModuleExports: (id) => {
198199
if (id.indexOf("antd/lib") !== -1) {
199200
return false;
@@ -288,7 +289,7 @@ const browserCheckConfig: UserConfig = {
288289
copyPublicDir: true,
289290
emptyOutDir: true,
290291
lib: {
291-
formats: ["iife"],
292+
formats: ["es"],
292293
name: "BrowserCheck",
293294
entry: "./src/browser-check.ts",
294295
fileName: () => {

0 commit comments

Comments
 (0)
Please sign in to comment.