-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[AssetMapper] Add integrity hashes to import maps #60362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
I can work on that ✋ |
Okay thanks; asked because of https://stackoverflow.com/a/52102596 |
Started things here some time ago... but it did not raise much passion, so I did not prioritize it |
Woops sorry @smnandre didn’t think of checking PRs 😅 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
A few days ago, Firefox 138 added support for
integrity
hashes in import maps, so this feature is now widely supported. See https://caniuse.com/mdn-html_elements_script_type_importmap_integrityWe could add this feature to the import map generated by AssetMapper.
Example
See https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap#integrity_metadata_map
This is how it looks in action. Today, AssetMapper generates the
imports
key and we'd need to also generate theintegrity
key of this hash:The text was updated successfully, but these errors were encountered: