OptionalmapFile containing initial import map (defaults to importmap.json, supports .js with embedded JSON, or HTML with inline import map)
OptionalconditionsComma-separated environment condition overrides or array of conditions (defaults to ['browser', 'development', 'module'] in normal mode, or ['browser', 'production', 'module'] in production mode)
OptionalresolutionComma-separated dependency resolution overrides or array of resolutions (no default, used to override specific package versions)
OptionalproviderOptionalcacheCache mode for fetches (defaults to 'online', accepts 'online', 'offline', 'no-cache')
OptionalreleaseEnable release mode with production optimizations (defaults to false) When enabled, automatically sets: --flatten-scopes, --combine-subpaths, --conditions=production
OptionalrootURL to treat as server root for rebasing import maps (defaults to current directory)
OptionalinstallInstall mode for resolving dependencies (defaults to 'default')
OptionalcompactOutput a compact import map (defaults to false, true for production)
OptionalstdoutOutput the import map to stdout (defaults to false)
OptionaloutFile to inject the final import map into (defaults to value of --map or importmap.js)
OptionalflattenFlatten import map scopes into smaller single top-level scope per origin (defaults to false, true for production)
OptionalcombineCombine import map subpaths under folder maps (defaults to false, true for production)
OptionalpreloadAdd module preloads to HTML output (defaults to undefined, accepts 'static', 'dynamic')
OptionalintegrityAdd module integrity attributes to the import map (defaults to false)
OptionalquietSuppress non-essential output (defaults to false)
OptionalshowDisplay version information (defaults to false)
OptionaldirDirectory to operate in (defaults to current working directory)
OptionaldisableComma-separated list of warnings to disable (e.g., 'file-count')
Flags for commands that generate import maps with output options. Extends GenerateFlags with additional output formatting options.
Applies to: