calvinmetcalf / rollup-plugin-node-builtins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File names conflicting with builtins

opened this issue · comments

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.