Skip to content

Commit bde5a47

Browse files
committed
Fix production OXC bundle output
1 parent 21f1dad commit bde5a47

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/yaak-client/vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export default defineConfig(async () => {
4848
chunkFileNames: "assets/chunk-[name]-[hash].js",
4949
entryFileNames: "assets/entry-[name]-[hash].js",
5050
assetFileNames: "assets/asset-[name]-[hash][extname]",
51-
// Vite-Plus/Rolldown 0.1.20 can emit a stale minified export for style-mod,
52-
// which breaks CodeMirror MergeView in production builds.
53-
minifyInternalExports: false,
51+
// Vite-Plus/Rolldown 0.1.20 can emit a stale style-mod export when
52+
// top-level var rewriting combines with OXC minification.
53+
topLevelVar: false,
5454
},
5555
},
5656
},

0 commit comments

Comments
 (0)