You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: lazy-load heavy external imports across modules
Defer loading of heavy external sub-bundles until first use via lazy
require() getters with /*@__PURE__*/ and /*@__NO_SIDE_EFFECTS__*/
annotations for tree-shaking.
sorts.ts: semver (2.5 MB via npm-pack) and fastSort (8 KB)
versions.ts: semver (2.5 MB via npm-pack)
archives.ts: adm-zip (102 KB) and tar-fs (105 KB)
globs.ts: fast-glob and picomatch (260 KB via pico-pack)
fs.ts: del (260 KB via pico-pack)
spawn.ts: @npmcli/promise-spawn (17 KB)
strings.ts: get-east-asian-width (10 KB)
Impact: consumers importing lightweight exports (isObject, httpJson,
localeCompare, defaultIgnore, readJsonSync, stripAnsi, spawnSync) no
longer pay for heavy externals at module init time. Total deferred:
~494 KB unique, ~2.8 MB including npm-pack chain.
0 commit comments