Closed eric183 closed 3 years ago
This is an ongoing problem when you bundle with Webpack (which I guess is where you encounter this?), see for example https://github.com/webpack/webpack/issues/4742. Applying your fix will unfortunately break the module for anyone not using Webpack, which is not acceptable.
I would be happy to make changes to for example package.json
to work around this if possible, but fiddling with normal, working CommonJS require
s simply is not something I think I should be responsible for as a module maintainer.
https://codesandbox.io/s/8y2f7?file=/src/index.js
Here's the sandbox reappearing this error