Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.

fix: add support for scratch-storage chunk files in webpack configuration#9885

Open
yokobond wants to merge 1 commit into
scratchfoundation:developfrom
xcratch:fix/asset-loading-fail
Open

fix: add support for scratch-storage chunk files in webpack configuration#9885
yokobond wants to merge 1 commit into
scratchfoundation:developfrom
xcratch:fix/asset-loading-fail

Conversation

@yokobond

@yokobond yokobond commented May 7, 2025

Copy link
Copy Markdown

Resolves

Assets in libraries are loaded correctly.

Proposed Changes

Copy scratch-storage workers under the build path to be accessed by browser.

Reason for Changes

scratch-storage 4 changed to bundle workers using Webpack 5 native (not plugin) syntax. So that, the worker code ignored by webpack of scratch-gui.

@github-actions

github-actions Bot commented May 7, 2025

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@yokobond yokobond marked this pull request as ready for review May 7, 2025 02:45
@yokobond

yokobond commented May 7, 2025

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@yokobond yokobond changed the title feat: add support for scratch-storage chunk files in webpack configuration fix: add support for scratch-storage chunk files in webpack configuration May 7, 2025
takaokouji added a commit to smalruby/smalruby3-gui that referenced this pull request Aug 24, 2025
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 <noreply@anthropic.com>
@takaokouji

Copy link
Copy Markdown

Please confirm this fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asset (sprite, backdrop, ...) does not load after clicking - scratch-gui v5.1.33

2 participants