Closed 1aron closed 1 year ago
What build tool is this?
The ESBuild example is bundled correctly. My project is a bit complicated, and only fs-extra
throws an error that the ./fs
module cannot be found, I'll find a way to provide a minimal reproduction and temporarily close this issue.
Source: ( https://github.com/jprichardson/node-fs-extra/blob/master/lib/index.js )
Exporting modules using the above way will make the build tool unable to bundle, and the module will not be found.
A safer way is recommended: