jspm / generator

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

ESMS resolve issue #231

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

When this fails, ie when using the nodemodules provider without es-module-shims installed, it's not obvious what the fix is.

We should wrap the error with a new error that specifically throws: es-module-shims@1.0.0 not found under the current provider.

In addition if the provider is "nodemodules", it should explicitly say: "Run npm install es-module-shims to install the polyfill".