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

Option to compile to /es6/ instead of /lib/ paths #10

Open
andrew-humu opened this issue Mar 19, 2019 · 1 comment
Open

Option to compile to /es6/ instead of /lib/ paths #10

andrew-humu opened this issue Mar 19, 2019 · 1 comment

Comments

@andrew-humu
Copy link

andrew-humu commented Mar 19, 2019

Just an idea. I wonder if it'd be useful to support the option of compiling imports to /es6/ instead of /lib/ paths, if you are working in a recent version of Webpack, or another environment that can load ES6 compatible code.

Maybe a plugin option?

// .babelrc
{
  "plugins": [
    ["babel-plugin-recharts", { "es6": true }]
  }
}
@andrew-humu
Copy link
Author

It's possible this won't actually be a meaningful improvement over proper tree shaking, if that's enabled in your Webpack build.

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

1 participant