calvinmetcalf / rollup-plugin-node-builtins

138 stars 40 forks source link

File names conflicting with builtins #46

Open ghost opened 5 years ago

ghost commented 5 years ago

I have a folder, and in that folder I have a src folder, and a ./src/util.ts file. Now for some reason, your plugin is hooking ./src/util.js up to the native util module. Here's a gist of the issue and my Rollup configuration file. I have fixed the issue by renaming ./src/util.ts to ./src/private.ts, which is a bit of a PITA. Could you take a look at this? It's a bit of an annoyance if node comes up with a component package, which would bust ./src/component.ts.

Thanks for looking at this, and I hope you find a fix or the origin of the problem in the source code.