Skip to content

Commit cf20dd8

Browse files
author
Tajudeen
committed
Fix blank screen issue: Remove hardcoded React chunk names from import map
- React chunks use relative imports and don't need to be in import map - Hardcoded chunk names were causing mismatches with dynamically generated chunks - This was causing module loading failures and blank screen - Chunks are now resolved via relative imports which work correctly
1 parent 8c73711 commit cf20dd8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/vs/code/electron-browser/workbench/workbench.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -521,15 +521,10 @@
521521
'vs/editor/browser/widget/diffEditor/diffEditorWidget.js',
522522
];
523523

524-
// Add React bundle chunk files to import maps (in case they're imported with absolute paths)
525-
const reactChunkModules = [
526-
'vs/workbench/contrib/cortexide/browser/react/out/chunk-RM77YOHK.js',
527-
'vs/workbench/contrib/cortexide/browser/react/out/chunk-RJP66NWB.js',
528-
'vs/workbench/contrib/cortexide/browser/react/out/chunk-PT4A2IRQ.js',
529-
'vs/workbench/contrib/cortexide/browser/react/out/chunk-SWVXQVDT.js',
530-
'vs/workbench/contrib/cortexide/browser/react/out/chunk-JSBRDJBE.js',
531-
'vs/workbench/contrib/cortexide/browser/react/out/chunk-6FX43ENS.js',
532-
];
524+
// React bundle chunk files don't need to be in import maps because they use relative imports
525+
// (e.g., '../chunk-XXX.js'). The import map is only needed for absolute paths.
526+
// Chunk names are generated dynamically by tsup, so hardcoding them would cause mismatches.
527+
const reactChunkModules: string[] = [];
533528

534529
const additionalReactDeps = [
535530
'vs/editor/browser/services/codeEditorService.js',

0 commit comments

Comments
 (0)