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

Add reexport of internal components #683

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eaglus
Copy link
Contributor

@eaglus eaglus commented Nov 17, 2018

Add reexport of internal components (required for correct import from es/index.js module, in webpack4 to make treeshaking work).

Importing something directly from '/lib/axes/' or something else imports specified module from /node_modules/react-stockcharts/lib/* (common js modules build), not from /node_modules/react-stockcharts/es/lib/.
This disables tree-shaking optimizationsI've add re-exports to root index.js, because for import {LineSeries} from 'react-stockcharts', webpack uses react-stockcharts/es/lib/
files, with es6-style exports/imports, and this makes tree-shaking possible.

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

Successfully merging this pull request may close these issues.

1 participant