Commit 0d19a99
authored
fix(build): deduplicate shared deps across external bundles (#110)
* chore: update picomatch to 4.0.4, fix runWithTempDir prefix param
Update picomatch dep from 2.3.1 to 4.0.4 and override from 4.0.3 to
4.0.4. Make runWithTempDir prefix parameter optional with default.
* fix(build): deduplicate shared deps across external bundles
Mark signal-exit, supports-color, debug, which, spdx-correct,
spdx-expression-parse, and p-map as external in npm-pack bundle so
they resolve to existing standalone wrappers at runtime. Mark
supports-color external in debug bundle. Add p-map as standalone
bundle and externalize from pico-pack.
Update supports-color 10.0.0 → 10.2.2. Add p-map 7.0.4 to
devDependencies and pnpm overrides. Enhance force-node-modules
esbuild plugin to handle ESM-only packages.
Net savings: ~88KB across bundles (npm-pack -86KB, debug -6KB,
pico-pack -4KB, p-map +8KB new).1 parent d2bbd4f commit 0d19a99
File tree
6 files changed
+197
-159
lines changed- scripts/build-externals
- src/external
- test/unit/utils
6 files changed
+197
-159
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
| 767 | + | |
767 | 768 | | |
768 | | - | |
| 769 | + | |
769 | 770 | | |
770 | 771 | | |
771 | 772 | | |
772 | 773 | | |
773 | 774 | | |
774 | 775 | | |
775 | | - | |
| 776 | + | |
776 | 777 | | |
777 | 778 | | |
778 | 779 | | |
| |||
821 | 822 | | |
822 | 823 | | |
823 | 824 | | |
824 | | - | |
| 825 | + | |
| 826 | + | |
825 | 827 | | |
826 | 828 | | |
827 | 829 | | |
828 | 830 | | |
829 | 831 | | |
830 | 832 | | |
831 | 833 | | |
832 | | - | |
| 834 | + | |
833 | 835 | | |
834 | 836 | | |
835 | 837 | | |
| |||
0 commit comments