FredKSchott / rollup-plugin-polyfill-node

A modern Node.js polyfill for your Rollup bundle.
Other
176 stars 55 forks source link

bug: Invalid Internal Id #57

Open mburger81 opened 2 years ago

mburger81 commented 2 years ago

I try to use your plugin instead of that one from @ionic, but I'm running into this issue:

Rollup: Invalid External Id
 'polyfill-node.https.js' is imported as an external by polyfill-node.https.js?commonjs-proxy, but is
 already an existing non-external module id.

I do nothing special, just loading the plugin in the "after" of rollup plugins, like i did in that one before

Any idea?

mburger81 commented 2 years ago

I think configuring also the @rollup/plugin-node-resolve plugin and set browser: true resolves the issue

I'm right?

nodeResolve(
        {
          browser: true,
          preferBuiltins: true
        }
      )