Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e822d17

Browse files
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‎

Lines changed: 3 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /