FredKSchott / rollup-plugin-polyfill-node

A modern Node.js polyfill for your Rollup bundle.
Other
177 stars 57 forks source link

Create https polyfill to add proper protocol #33

Closed tonibardina closed 3 years ago

tonibardina commented 3 years ago

If the user works with a library that does not send opts.protocol to the http polyfill, then defaultValue will always be http. We need at least a way to keep https as the protocol even if it does not come in options.

Haven't tested this yet, for now, is just an idea on how we might fix this issue