Skip to content

fix(bundling): Rebundle when an imported script or style dependency changes - #110

Merged
Princesseuh merged 2 commits into
mainfrom
investigate-script-cache
Aug 4, 2026
Merged

fix(bundling): Rebundle when an imported script or style dependency changes#110
Princesseuh merged 2 commits into
mainfrom
investigate-script-cache

Conversation

@Princesseuh

Copy link
Copy Markdown
Member

Incremental builds only fingerprinted script and style entry files, so editing a module imported by an include_script entry (or a CSS partial pulled in via @import) left the cache thinking nothing had changed, and the build served a stale bundle.

Bundling now also fingerprints each chunk's source module graph and the @import graph, so a change to an imported file triggers a rebundle.

d437432 covered a neighbouring case — assets Rolldown emits separately, like fonts and WASM — but imported JS modules are inlined into a chunk rather than emitted as assets, so they were never tracked.

Adds regression tests for both the JS and CSS cases.

@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for maudit-framework ready!

Name Link
🔨 Latest commit c629045
🔍 Latest deploy log https://app.netlify.com/projects/maudit-framework/deploys/6a71233110318100083f095a
😎 Deploy Preview https://deploy-preview-110--maudit-framework.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the crt:maudit Changes in Maudit crate. label Aug 3, 2026
@Princesseuh
Princesseuh merged commit dfadca2 into main Aug 4, 2026
10 of 11 checks passed
@Princesseuh
Princesseuh deleted the investigate-script-cache branch August 4, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crt:maudit Changes in Maudit crate.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant