Skip to content

Commit 652938e

Browse files
perf: minify the precompiled options check (#770)
* perf: minify the precompiled options check Generate src/options.check.js with `schema-utils precompile --minify`, and run the check before loading `schema-utils` on webpack versions without `compiler.validate`. Bump schema-utils to ^4.8.5 and the webpack devDependency to ^5.112.2, the first with the minifier `--minify` uses; the snapshots follow its runtime code. * test: follow webpack 5.113.0, which embeds asset/source text as written * test: accept any identifier terser picks
1 parent 317e853 commit 652938e

17 files changed

Lines changed: 1450 additions & 1612 deletions

‎.changeset/minify-options-check.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"minimizer-webpack-plugin": patch
3+
---
4+
5+
Minify the precompiled options check, so it loads faster, and run it before `schema-utils` on webpack versions without `compiler.validate`, so valid options load neither `schema-utils` nor the schema there either.

‎.prettierignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ src/options.check.js
55
/node_modules
66
/test/fixtures
77
CHANGELOG.md
8+
/src/options.check.js

0 commit comments

Comments
 (0)