Commit 4b8460f
committed
fix(cli): Resolve bin/oxfmt as like oxlint (#1326)
- `oxfmt@0.44` added `package.json` exports
- oxc-project/oxc#20784, for #1162
- This prevents access to unspecified subpaths
- As a result, this type of error will occur
- https://github.com/rolldown/rolldown/actions/runs/24068646976/job/70200159260?pr=9018
- At the moment, `vite-plus` bundles `oxfmt@0.43`, so this should not be an issue
- It was only causing a problem because rolldown repo happened to overwrite it by installing `oxfmt@0.44` separately
- However, this issue will happen for us when updating to bundle `oxfmt@0.44` in the future
We can avoid this issue by following the `oxlint` resolution approach. And now, it's ready to update `oxfmt@0.44` safely.1 parent f47d2a4 commit 4b8460f
2 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
31 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
0 commit comments