Repository navigation
Commit 5a41278
authored
fix: read a
The prefix wanted exactly two slashes, but Node's URL parser normalizes
any number of them and `import("file:/abs/x.js")` loads - so that spelling
was kept as a literal path. It needs one slash after the scheme now, which
leaves `file:x.js` the relative-looking request it reads as.
The `absolutePath` schema keyword had the same assumption, so a value of
that shape was rejected before it ever reached the conversion; bumping
`schema-utils` and `tooling` regenerates the pre-compiled validators to
match. `enhanced-resolve` goes to 5.25.0 for the file URLs it now takes
in `resolve` options.file: URL the way Node does (#22089)1 parent 919ef10 commit 5a41278
23 files changed
Lines changed: 74 additions & 34 deletions
File tree
- .changeset
- lib/util
- schemas
- plugins
- asset
- container
- debug
- dll
- ids
- schemes
- test/configCases
- plugins/hashed-module-ids-file-url-context
- rule-set/file-url-condition
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
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.
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