jspm / generator

JSPM Import Map Generator
Apache License 2.0
167 stars 21 forks source link

Support arbitrary existing import map as input lock #118

Closed guybedford closed 2 years ago

guybedford commented 2 years ago

Instead of treating all mappings of inputMap as authoritative, we should always treat inputMap as first going through extractLockAndMap to prepopulate the lockfile and custom maps separately.

If you want an authoritative inputMap you could just use new Generator({ inputMap, freeze: true }) to retain the existing behaviour.

guybedford commented 2 years ago

To avoid pruning inputMap "imports" we probably need to also deconstruct the installs so they can be retained...

guybedford commented 2 years ago

Added in https://github.com/jspm/generator/pull/134.