Paciolan / remote-module-loader

Loads a CommonJS module from a remote URL for the Browser or Node.js.
MIT License
85 stars 21 forks source link

Consider adding browser field in `package.json` #27

Open smeng9 opened 1 year ago

smeng9 commented 1 year ago

Hi @joelnet

In order to resolve the webpack 5 build problem, we need to add a

browser: { http: "stream-http", https: "https-browserify" }

to package.json

like https://github.com/webpack/webpack/blob/c181294865dca01b28e6e316636fef5f2aad4eb6/lib/ModuleNotFoundError.js#L21

Also add stream-http and https-browserify to dependencies.