Tree shaking (sideEffects free?)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 463
- PR merge metrics
- No merged PRs in 30d
Description
Great work on this library! It's awesome the focus is on most critical features and keeping it small.
Though just wondered, is tree shaking supported during bundling to make it even smaller? I tried to see how library is packaged on https://bundlephobia.com/package/uplot although it doesn't seem to build - so is this a library esm compatible and can be imported and allow Webpack to treeshake away the chart types that aren't used e.g. src/paths/spline.js ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking how the library is packaged and whether Webpack can consume its ESM output; compare the bundlephobia failure with the published package. Verify whether unused chart paths such as src/paths/spline.js can be excluded when importing the library, and document the result or scope of any packaging change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100