Skip to content

Commit 0d19a99

Browse files
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

6 files changed

+197
-159
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,15 +764,16 @@
764764
"npm-package-arg": "13.0.0",
765765
"oxfmt": "^0.37.0",
766766
"oxlint": "1.53.0",
767+
"p-map": "7.0.4",
767768
"pacote": "21.0.1",
768-
"picomatch": "2.3.1",
769+
"picomatch": "4.0.4",
769770
"pony-cause": "2.1.11",
770771
"semver": "7.7.2",
771772
"signal-exit": "4.1.0",
772773
"spdx-correct": "3.2.0",
773774
"spdx-expression-parse": "4.0.0",
774775
"streaming-iterables": "8.0.1",
775-
"supports-color": "10.0.0",
776+
"supports-color": "10.2.2",
776777
"tar-fs": "3.1.2",
777778
"tar-stream": "3.1.8",
778779
"taze": "19.9.2",
@@ -821,15 +822,16 @@
821822
"minizlib": "3.1.0",
822823
"npm-package-arg": "12.0.2",
823824
"npm-pick-manifest": "10.0.0",
824-
"picomatch": "4.0.3",
825+
"p-map": "7.0.4",
826+
"picomatch": "4.0.4",
825827
"proc-log": "6.1.0",
826828
"semver": "7.7.2",
827829
"signal-exit": "4.1.0",
828830
"spdx-expression-parse": "4.0.0",
829831
"ssri": "12.0.0",
830832
"string-width": "8.1.0",
831833
"strip-ansi": "7.1.2",
832-
"supports-color": "10.0.0",
834+
"supports-color": "10.2.2",
833835
"tar": "7.5.11",
834836
"which": "5.0.0",
835837
"wrap-ansi": "9.0.2",

0 commit comments

Comments
 (0)