browserify / browserify/randombytes

Make package tree-shakeable

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
102
Forks
47
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

Tech stack
javascript, webpack
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.