ionic-team / rollup-plugin-node-polyfills

MIT License
139 stars 59 forks source link

import/require with trailing slash not getting resolved #3

Open GSSwain opened 4 years ago

GSSwain commented 4 years ago

https://github.com/ionic-team/rollup-plugin-node-polyfills/blob/9b5fe1a9cafffd4871e6d65613ed224f807ea251/src/modules.ts#L65

I believe the intent was to remove the trailing slash and check in the map if the Polyfill exists importee === importee.slice(0, -1); should have been importee = importee.slice(0, -1);