Generates and manages import maps for browser-native ES module loading.
Import maps allow mapping bare module specifiers to URLs
for use with <script type="importmap">.
Summary
Functions
Counts the number of mappings.
Generates an import map from a lockfile.
Generates an import map with only specified packages.
Merges two import maps (second overrides first).
Generates an HTML script tag.
Serializes an import map to JSON.
Functions
@spec count(map()) :: non_neg_integer()
Counts the number of mappings.
Generates an import map from a lockfile.
Generates an import map with only specified packages.
Merges two import maps (second overrides first).
Generates an HTML script tag.
Serializes an import map to JSON.