Commit 6c6eb57
committed
Wasm: drop implicit flag injection, require explicit ES module, rename to --js-runtime
- Remove the exnref capability probe and all --experimental-wasm-exnref /
DENO_V8_FLAGS injection (tanishiking). scala-cli no longer manages V8
flags; on older runtimes that still gate exnref, users pass it via
NODE_OPTIONS / DENO_V8_FLAGS. CI runtimes (node 24, deno 2.x, bun) need none.
- Stop forcing ESModule for Wasm; fail fast with WasmModuleKindError when
--js-module-kind isn't es, instead of silently overriding it. Keeps config
consistent with Scala.js and future module kinds.
- Rename --js-wasm-runtime -> --js-runtime and //> using wasmRuntime ->
//> using jsRuntime; selecting a runtime no longer auto-enables Wasm.
- Update integration tests (explicit --js-module-kind es, renamed flag,
fail-fast test) and the Wasm guide; regenerate reference docs.1 parent eabfdbe commit 6c6eb57
18 files changed
Lines changed: 332 additions & 173 deletions
File tree
- .github/workflows
- modules
- build/src/main/scala/scala/build/internal
- cli/src/main/scala/scala/cli/commands
- run
- core/src/main/scala/scala/build/errors
- directives/src/main/scala/scala/build/preprocessing/directives
- integration/src/test/scala/scala/cli/integration
- options/src/main/scala/scala/build/options
- website/docs
- guides/advanced
- reference
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
243 | 247 | | |
244 | 248 | | |
245 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| |||
284 | 292 | | |
285 | 293 | | |
286 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
287 | 299 | | |
288 | 300 | | |
289 | 301 | | |
| |||
325 | 337 | | |
326 | 338 | | |
327 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
328 | 344 | | |
329 | 345 | | |
330 | 346 | | |
| |||
366 | 382 | | |
367 | 383 | | |
368 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
369 | 389 | | |
370 | 390 | | |
371 | 391 | | |
| |||
Lines changed: 8 additions & 63 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 192 | | |
224 | 193 | | |
225 | 194 | | |
| |||
252 | 221 | | |
253 | 222 | | |
254 | 223 | | |
255 | | - | |
256 | | - | |
| 224 | + | |
257 | 225 | | |
258 | 226 | | |
259 | | - | |
260 | | - | |
261 | | - | |
| 227 | + | |
| 228 | + | |
262 | 229 | | |
263 | 230 | | |
264 | 231 | | |
| |||
275 | 242 | | |
276 | 243 | | |
277 | 244 | | |
278 | | - | |
279 | | - | |
| 245 | + | |
280 | 246 | | |
281 | 247 | | |
282 | 248 | | |
283 | 249 | | |
284 | 250 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 251 | | |
291 | | - | |
| 252 | + | |
292 | 253 | | |
293 | 254 | | |
294 | 255 | | |
| |||
309 | 270 | | |
310 | 271 | | |
311 | 272 | | |
312 | | - | |
| 273 | + | |
313 | 274 | | |
314 | 275 | | |
315 | 276 | | |
| |||
359 | 320 | | |
360 | 321 | | |
361 | 322 | | |
362 | | - | |
363 | | - | |
| 323 | + | |
364 | 324 | | |
365 | 325 | | |
366 | 326 | | |
367 | 327 | | |
368 | 328 | | |
369 | 329 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | 330 | | |
383 | 331 | | |
384 | 332 | | |
| |||
393 | 341 | | |
394 | 342 | | |
395 | 343 | | |
396 | | - | |
| 344 | + | |
397 | 345 | | |
398 | 346 | | |
399 | 347 | | |
| |||
408 | 356 | | |
409 | 357 | | |
410 | 358 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | 359 | | |
415 | 360 | | |
416 | 361 | | |
| |||
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
482 | | - | |
483 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| |||
504 | 505 | | |
505 | 506 | | |
506 | 507 | | |
507 | | - | |
| 508 | + | |
508 | 509 | | |
509 | | - | |
510 | | - | |
511 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
512 | 513 | | |
513 | 514 | | |
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
517 | | - | |
| 518 | + | |
518 | 519 | | |
519 | 520 | | |
520 | 521 | | |
521 | 522 | | |
522 | | - | |
523 | | - | |
| 523 | + | |
524 | 524 | | |
525 | | - | |
| 525 | + | |
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
534 | | - | |
| 533 | + | |
535 | 534 | | |
536 | | - | |
| 535 | + | |
537 | 536 | | |
538 | 537 | | |
539 | 538 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | | - | |
70 | | - | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
| 254 | + | |
| 255 | + | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
353 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
356 | 357 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments