Make package tree-shakeable
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, webpack
- Domain
- build-system, tooling
Research direction
Start by inspecting package.json and the package's current module entry points, looking for the CommonJS and export-assignment forms named in the issue. Check how webpack consumes the package and whether the existing browserify build remains compatible. Done means package.json declares side-effect freedom and the package uses import/export syntax without breaking its supported bundle usage.
Written by the indexing model from the issue text.
Description
I am using webpack to bundle my code. It can remove unused code by the process called tree-shaking, but it can only do it if the code is side effect free, and and ES6 module.
For this I propose to mark the package side effect free by including "sideEffects": false in the package.json.
Also convert the code to proper ES module syntax by only using import / export instad of module.exports, export = ..., etc.
- Dominant language
- JavaScript
- Stars
- 102
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
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.
More from browserify/randombytes
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
browserify/randombytes#38 · 2 reactions ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 35/100
browserify/randombytes#37 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
browserify/randombytes#36 · 2 comments · 6 reactions ·
-
Broken on SSR Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
browserify/randombytes#33 · 2 comments · 1 reaction ·
-
remove phantomjs Open
Difficulty 1/5 Under an hour Newbie friendliness 38/100
browserify/randombytes#26 ·
All issues in browserify/randombytes
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nightscout/nocturne#1414 ·
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·