From ff3f392b38aaaa51bc61fbc2756809fb54d2d74d Mon Sep 17 00:00:00 2001 From: Kouji Takao Date: Mon, 25 Aug 2025 06:56:49 +0900 Subject: [PATCH] fix: copy scratch-storage webpack chunks to prevent loading hangs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply fix from upstream scratch-gui PR #9885 to resolve asset loading timeouts by ensuring scratch-storage's dynamically imported chunks are copied to the build output. Original patch: https://github.com/scratchfoundation/scratch-gui/pull/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 --- webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 41fa095634b..08fa08aff04 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -80,6 +80,11 @@ const baseConfig = new ScratchWebpackConfigBuilder( context: 'node_modules/scratch-vm/dist/web', from: 'extension-worker.{js,js.map}', noErrorOnMissing: true + }, + { + context: 'node_modules/scratch-storage/dist/web', + from: 'chunks/*.{js,js.map}', + noErrorOnMissing: true } ] }));