jspm / generator

JSPM Import Map Generator
Apache License 2.0
160 stars 20 forks source link

feat: only throw when tracing cjs modules that use cjs globals #261

Closed Bubblyworld closed 1 year ago

Bubblyworld commented 1 year ago

See #259. Currently the generator is as strict as the Node.js resolver when it comes to tracing CommonJS modules. For our purposes it only matters if the traced CJS module uses CJS globals, as otherwise browser/deno runtimes can run the module just fine in any case.

Bubblyworld commented 1 year ago

The tests are failing because of a build error in the CDN.