Repository navigation
Commit 3664b9d
authored
chore: update webpack-dev-server to v6 and test against v5 and v6 (#4834)
Bump the dev dependency to `webpack-dev-server@6` and add snapshots for it,
which the snapshot resolver already supports through the
`.snap.devServer<major>.webpack<major>` extension. CI now runs the test matrix
against both v5 and v6, installing v5 with npm for that job.
`webpack-dev-server` v6 is ESM and exposes the server as its `default` export,
while v5 exports it directly, so the CLI now resolves the constructor type from
the default export when there is one. Runtime behavior is unchanged, the package
was already loaded through `(await import(pkg)).default`.1 parent ce1a219 commit 3664b9d
11 files changed
Lines changed: 4036 additions & 868 deletions
File tree
- .changeset
- .github/workflows
- packages/webpack-cli/src
- test
- build/error/invalid-schema
- help/__snapshots__
- serve
- basic/__snapshots__
- invalid-schema/__snapshots__
- serve-variable/__snapshots__
- with-custom-port/__snapshots__
| 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 | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
0 commit comments