Importmaps
Which JavaScript modules the browser may import by name, and which of them are loaded as soon as a page opens.
Explanation
JavaScript bundled in an extension imports a module by a bare name such as vue, and nothing in the browser knows what that name points at. An extension therefore declares an importmap: its keys are the module IDs the bundled code imports, and its values are the WebJar resources to resolve them with. JavaScript Importmap API documents the extension property that carries the declaration and what may be put in it.
Three cases follow from there. Define the Importmap for a Module maps a dependency the bundle uses without including it. Define the Importmap for an Eager Module also has it loaded and run when the page opens. Define the Importmap for an Eager and Anonymous Module runs it on page load without listing it in the importmap at all.
More
To find more about the current topic, you can search or use the table below and filter the columns to narrow your choices.