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
Hi,
I saw you answered a similar issue already (#19 ), and for WEbpack this solution works fine. But with for example Rollup it doesn't work. Error: 'default' is not exported by node_modules/react-string-replace/index.js
So would you accept a PR where we add ES6 compatibility?
Hm, I think there is a webpack option for this. Maybe a rollup option too. Something like esModuleInterop (which is a typescript option) that will automatically resolve the default export even if the source code doesn't provide it.
Activity
iansinnott commentedon Jan 25, 2020
Hm, I think there is a webpack option for this. Maybe a rollup option too. Something like
esModuleInterop(which is a typescript option) that will automatically resolve the default export even if the source code doesn't provide it.But yeah would welcome a PR :)