You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for calling this out. I had also noticed this recently and it's been on my list of things to fix, but I might as well fix it now.
This is a result of cross-contamination between dependencies for ES6 namespace exports and ES6 entry point exports. ES6 namespace exports (the ns object from import * as ns from 'path') are always generated for every file but are removed by tree shaking if they are unused. The same code that generates ES6 namespace exports also generates the exports for entry points when using the esm format because the two tasks are very similar. They were accidentally sharing the same dependency list instead of maintaining two separate dependency lists.
I'm using ESBuild to bundle ESM -> ESM bundle and it includes the following
AFAIK, pure ESM -> ESM transform shouldn't require anything additional to work. Is this unnecessary bloat?
I'm using the following settings
The text was updated successfully, but these errors were encountered: