Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 Module declaration #47

Open
niklaswolf opened this issue Jan 24, 2020 · 1 comment
Open

ES6 Module declaration #47

niklaswolf opened this issue Jan 24, 2020 · 1 comment

Comments

@niklaswolf
Copy link

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?

@iansinnott
Copy link
Owner

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants