This reinstates generator.traceInstall, instead of the recently attempted generator.pin name change.
traceInstall is then updated to always install traces into top-level imports rather than scopes, so it behaves like a full local install operator as opposed to making scopes that might be orphaned later on.
traceInstall effectively stops on bare specifiers, moving to scoped installs after that. This makes it useful for both adding local mappings (eg generator.traceInstall('#local') to add a local package.json "imports" map), and external (generator.traceInstall('https://site.com/external.js') - still populating "imports").
Since htmlInject uses this internally this then fully matches the expectations of HTML tracing as well.
This reinstates
generator.traceInstall
, instead of the recently attemptedgenerator.pin
name change.traceInstall
is then updated to always install traces into top-level imports rather than scopes, so it behaves like a full local install operator as opposed to making scopes that might be orphaned later on.traceInstall
effectively stops on bare specifiers, moving to scoped installs after that. This makes it useful for both adding local mappings (eggenerator.traceInstall('#local')
to add a local package.json "imports" map), and external (generator.traceInstall('https://site.com/external.js')
- still populating"imports"
).Since
htmlInject
uses this internally this then fully matches the expectations of HTML tracing as well.