browserify / browserify/randombytes

Make package tree-shakeable

Offen
#40 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
102
Forks
47
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.