Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Make package tree-shakeable

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from browserify/randombytes

All issues in browserify/randombytes

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.