Closed dmail closed 11 months ago
Fixes https://github.com/jsenv/importmap-node-module/issues/68
writeImportMapFiles
writeImportmaps
importMapFiles
importmaps
entryPointsToCheck
entryPoints
manualImportMap
manualImportmap
bareSpecifierAutomapping
This pull request allow the following:
Command to generate importmap into an html file:
npm @jsenv/importmap-node-module index.html --remove-unused
API to generate importmap for an html file:
import { writeImportmaps } from "@jsenv/importmap-node-module"; await writeImportmaps({ projectDirectoryUrl: new URL("./", import.meta.url), importmaps: { "./index.html": { mappingsForNodeResolution: true, removeUnused: true, }, }, });
Fixes https://github.com/jsenv/importmap-node-module/issues/68
Changelog
writeImportMapFiles
function renamedwriteImportmaps
importMapFiles
param renamedimportmaps
entryPointsToCheck
param renamedentryPoints
manualImportMap
option renamedmanualImportmap
bareSpecifierAutomapping
is used withoutentryPoints
This pull request allow the following:
Command to generate importmap into an html file:
API to generate importmap for an html file: