v0.6.0
Pre-release
Pre-release
Excluding imports from faking (#15)
Mark specific modules as real to prevent them from being imported as blob urls which could potentially be slow:
const importer = new Importer(import.meta.url);
importer.makeReal("./Foo.js");
More info about this in the readme.
BREAKING: Setting import maps is now a constructor option (#18)
Setting import maps is no longer done via importer.setImportMap()
but is now a constructor option:
const importer = new Importer(import.meta.url, {
importMap: "./path/to/importMap.json",
});
BREAKING: Automatically mark import map entries as real (#19)
All entries from import maps are automatically marked as real. To prevent this, set makeImportMapEntriesReal
to false
.
const importer = new Importer(import.meta.url, {
importMap: "./path/to/importMap.json",
makeImportMapEntriesReal: false,
});