Skip to content

Commit ff3f392

Browse files
takaokoujiclaude
andcommitted
fix: copy scratch-storage webpack chunks to prevent loading hangs
Apply fix from upstream scratch-gui PR scratchfoundation#9885 to resolve asset loading timeouts by ensuring scratch-storage's dynamically imported chunks are copied to the build output. Original patch: scratchfoundation#9885 Copyright belongs to the original patch author. Fixes asset loading hangs where super.load() would timeout after 10 seconds for certain asset IDs (e.g., bcf454acf82e4504149f7ffe07081dbc). 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent dddadaa commit ff3f392

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ const baseConfig = new ScratchWebpackConfigBuilder(
8080
context: 'node_modules/scratch-vm/dist/web',
8181
from: 'extension-worker.{js,js.map}',
8282
noErrorOnMissing: true
83+
},
84+
{
85+
context: 'node_modules/scratch-storage/dist/web',
86+
from: 'chunks/*.{js,js.map}',
87+
noErrorOnMissing: true
8388
}
8489
]
8590
}));

0 commit comments

Comments
 (0)