jspm / generator

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

Can we generate react-dom without process? #195

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

Currently react-dom generates:

{
  "imports": {
    "react-dom": "https://ga.jspm.io/npm:react-dom@18.2.0/index.js"
  },
  "scopes": {
    "https://ga.jspm.io/": {
      "process": "https://ga.jspm.io/npm:@jspm/core@2.0.0-beta.27/nodelibs/browser/process-production.js",
      "react": "https://ga.jspm.io/npm:react@18.2.0/index.js",
      "scheduler": "https://ga.jspm.io/npm:scheduler@0.23.0/index.js"
    }
  }
}

it would be nice if we could somehow detect in this specific case that a full process shim is not necessary, and just a partial process inlining can work.

guybedford commented 1 year ago

Done.