Skip to content
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

feat: support importmap integrity field #363

Merged
merged 1 commit into from
Jul 7, 2024
Merged

feat: support importmap integrity field #363

merged 1 commit into from
Jul 7, 2024

Conversation

guybedford
Copy link
Member

This adds full support for the new "integrity" field in import maps.

There are two ways to apply it:

  1. Initialize the generator with the integrity: true option - new Generator({ integrity: true }). When this is done, all import maps will have an integrity field for every single module in the graph.
  2. When using htmlInject, for backwards compatibility, the existing integrity option will now use the integrity field in import maps instead of using preload integrity.

Works in conjunction with the new "integrity" field support landed in es-module-shims in guybedford/es-module-shims#424.

@guybedford guybedford merged commit b449106 into main Jul 7, 2024
6 checks passed
@guybedford guybedford deleted the integrity branch July 7, 2024 22:36
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.

1 participant