typebox icon indicating copy to clipboard operation
typebox copied to clipboard

Indicate which files don't have "sideEffects" in package.json for improved tree shaking

Open CraigMacomber opened this issue 8 months ago • 3 comments

I think (but have not confirmed) that part of the reason I'm seeing more TypeBox code get included in my bundle than expected is because TypeBox does not specify "sideEffects": false in its package.json file.

Assuming TypeBox does not rely on import side-effects, including that should improve tree shaking in webpack based bundles, see https://webpack.js.org/guides/tree-shaking/

CraigMacomber avatar Jun 17 '24 17:06 CraigMacomber