Commit a61214c
committed
refactor(cli): use esbuild aliases for WASM builds
Add esbuild alias for onnxruntime-web and remove yoga-layout patch.
Changes:
- Add onnxruntime-web@1.23.0 as devDependency
- Add esbuild alias redirecting onnxruntime-web to build/onnx-sync.mjs
- Restore type import from onnxruntime-web in minilm-inference.mts
- Remove yoga-layout patch (no longer needed with esbuild alias)
Both yoga-layout and onnxruntime-web now follow the same pattern:
1. npm package installed as devDependency (for types and dependencies like ink)
2. esbuild plugin redirects imports to custom synchronous WASM builds
3. Custom builds from packages/yoga-layout and packages/onnxruntime1 parent 8a5870f commit a61214c
File tree
4 files changed
+127
-3
lines changed- packages/cli
- .config
- src/utils
4 files changed
+127
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
358 | 370 | | |
359 | 371 | | |
360 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | | - | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments