Repository navigation
Commit c959c39
authored
fix: collect a require reached through a spread (#22230)
The scan skips a `require` preceded by a dot, which rules out
`foo.require(…)` but also swallowed the last dot of `...require("…")`, so
`module.exports = { ...require("./base") }` in a config named no build
dependency and editing that base left the pack valid.
Only Bun reaches the scan — Node and Deno recover the same dependencies
from `module.children` — so the stale cache was Bun's alone.1 parent 0ae3361 commit c959c39
3 files changed
Lines changed: 19 additions & 1 deletion
File tree
- .changeset
- lib/javascript
- test/unitCases
| 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 | |
|---|---|---|---|
| |||
17729 | 17729 | | |
17730 | 17730 | | |
17731 | 17731 | | |
17732 | | - | |
| 17732 | + | |
| 17733 | + | |
| 17734 | + | |
17733 | 17735 | | |
17734 | 17736 | | |
17735 | 17737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
| |||
0 commit comments