browserify / browserify/randombytes
Make package tree-shakeable
未关闭
- 主要语言
- JavaScript
- 星标
- 102
- 派生
- 47
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先检查 package.json 和包当前的模块入口点,查找 issue 中提到的 CommonJS 和 export-assignment 形式。检查 webpack 如何使用该包,以及现有的 browserify 构建是否仍然兼容。当 package.json 声明无副作用,并且该包使用 import/export 语法而不破坏其受支持的 bundle 用法时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, webpack
- 领域
- build-system, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100