Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/defer-interpret-inline-levenshtein.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-cli": patch
---

Reduced CLI startup work for `webpack build`: the `interpret` package is now imported only when no common-extension config file (`.js`/`.mjs`/`.cjs`/`.ts`/`.cts`/`.mts`) exists, and the Levenshtein "did you mean" helper was inlined to drop a module import.
5 changes: 5 additions & 0 deletions .changeset/lazy-levenshtein-buffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-cli": patch
---

Allocate the Levenshtein lookup buffer lazily so the 256 KB `Uint32Array` is only created when "did you mean" suggestions run (on error paths) rather than on every CLI invocation.
5 changes: 5 additions & 0 deletions .changeset/skip-getarguments-no-flags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-cli": patch
---

Skip the webpack schema-to-arguments walk on a plain `webpack build` (and other no-flag invocations). When no option flags are present, the CLI no longer builds the full option list or calls `getArguments`, reducing startup time and peak memory for the most common invocation.
165 changes: 0 additions & 165 deletions packages/webpack-cli/src/levenshtein.ts

This file was deleted.

Loading
Loading