Repository navigation
Commit b77c2d8
authored
build: precompile schemas with schema-utils (#22774)
* build: precompile schemas with schema-utils
tooling/precompile-schemas.js now calls schema-utils' precompile with
minify instead of carrying its own ajv keywords, error stripping and
terser pass, so webpack's checks are built the same way as every
plugin's and loader's. The checks are minified with webpack's own
minifier, so the lint job links webpack like the test jobs do.
Drops the ajv and commondir devDependencies.
* build: keep types.d.ts as main generates it
The schema-utils imports moved only with a stale local node_modules; a
clean install generates the same types.d.ts as main.
* build: update schema-utils to 4.8.1
4.8.1 bundles without errors or warnings, which test/cases/large/big-assets
needs now that the tooling uses schema-utils precompile.
* build: regenerate schema checks with main's minifier
#22754 changed what webpack's minifier writes, which the checks are now
minified with.1 parent f9705a6 commit b77c2d8
50 files changed
Lines changed: 168 additions & 417 deletions
File tree
- .changeset
- .github/workflows
- schemas
- plugins
- asset
- container
- css
- debug
- define
- dll
- ids
- json
- optimize
- output
- schemes
- sharing
- tooling
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 8 | | |
15 | 9 | | |
16 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments