Skip to content

Conversation

@davidtaylorhq
Copy link

When sourcemaps change, their digest will change, and the generated URL in the # sourceMappingURL comment will change. Therefore, it's important that the digest of the original asset also changes, so that caches can be invalidated correctly.

This change makes use of the existing #referenced_by API in the SourceMappingUrls compiler, and implements the tests in a similar way to 59406ab.

Resolves #259

When sourcemaps change, their digest will change, and the generated URL in the `# sourceMappingURL` comment will change. Therefore, it's important that the digest of the original asset also changes, so that caches can be invalidated correctly.

This change makes use of the existing `#referenced_by` API in the SourceMappingUrls compiler, and implements the tests in a similar way to 59406ab.
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.

Changes to sourcemap do not affect asset digest

1 participant