Commit 5c2c23a
fix(react-icons): add sideEffects: false to dist/esm/package.json
The generated dist/esm/package.json only contains {"type": "module"},
which shadows the root package.json's "sideEffects": false declaration.
Webpack resolves the nearest package.json for each module, so all icons
under dist/esm/ are treated as having side effects, breaking tree-shaking
and bundling all 2846 icons (~7MB) regardless of usage.
Fixes #12313
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c9853de commit 5c2c23a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
0 commit comments