Skip to content

Conversation

yokobond
Copy link

@yokobond yokobond commented May 7, 2025

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.

Copy link

github-actions bot commented May 7, 2025

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
Copy link
Author

yokobond commented May 7, 2025

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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
1 participant