forked fromflutter/packages
- Notifications
You must be signed in to change notification settings - Fork2
Commit8e2a6fc
authored
Implement hot reload using the DDC library bundle format (#162498)
dart-lang/webdev#2516- Updates restart/reload code to accept a resetCompiler boolean todisambiguate between whether this is a full restart and whether to resetthe resident compiler.- Adds code to call reloadSources in DWDS and handle the response(including any errors).- Adds code to invoke reassemble.- Adds code to emit a script that DWDS can later consume that containsthe changed sources and their associated libraries. This is used to hotreload. The bootstrapper puts this in the global window. DWDS should beupdated to accept it in the provider itself. Seedart-lang/webdev#2584.- Adds code to parse module metadata from the frontend server. This isidentical to the implementation in DWDS % addressing type-related lints.- Adds tests that run the existing hot reload tests but with web. Somemodifications are mode, including waiting for Flutter runs to finishexecuting, and skipping a test that's not possible on the web.Needs DWDS 24.3.4 to be published first and used before we can land.## Pre-launch Checklist- [x] I read the [Contributor Guide] and followed the process outlinedthere for submitting PRs.- [x] I read the [Tree Hygiene] wiki page, which explains myresponsibilities.- [x] I read and followed the [Flutter Style Guide], including [Featureswe expect every widget to implement].- [x] I signed the [CLA].- [x] I listed at least one issue that this PR fixes in the descriptionabove.- [x] I updated/added relevant documentation (doc comments with `///`).- [x] I added new tests to check the change I am making, or this PR is[test-exempt].- [x] I followed the [breaking change policy] and added [Data DrivenFixes] where supported.- [ ] All existing and new tests are passing.1 parent4d08217 commit8e2a6fc
File tree
21 files changed
+866
-360
lines changed- packages/flutter_tools
- lib/src
- isolated
- web
- test
- general.shard
- integration.shard
- test_data
- web.shard
- test_data
21 files changed
+866
-360
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
554 | 558 | | |
555 | 559 | | |
556 | 560 | | |
| |||
566 | 570 | | |
567 | 571 | | |
568 | 572 | | |
| 573 | + | |
569 | 574 | | |
570 | 575 | | |
571 | 576 | | |
| |||
577 | 582 | | |
578 | 583 | | |
579 | 584 | | |
580 | | - | |
| 585 | + | |
581 | 586 | | |
582 | 587 | | |
583 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
161 | 172 | | |
162 | 173 | | |
163 | 174 | | |
| |||
174 | 185 | | |
175 | 186 | | |
176 | 187 | | |
177 | | - | |
| 188 | + | |
178 | 189 | | |
179 | 190 | | |
180 | 191 | | |
181 | 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 | + | |
| 224 | + | |
| 225 | + | |
182 | 226 | | |
183 | 227 | | |
184 | 228 | | |
| |||
1001 | 1045 | | |
1002 | 1046 | | |
1003 | 1047 | | |
| 1048 | + | |
1004 | 1049 | | |
1005 | 1050 | | |
1006 | 1051 | | |
| |||
1077 | 1122 | | |
1078 | 1123 | | |
1079 | 1124 | | |
1080 | | - | |
| 1125 | + | |
1081 | 1126 | | |
1082 | 1127 | | |
1083 | 1128 | | |
| |||
1122 | 1167 | | |
1123 | 1168 | | |
1124 | 1169 | | |
1125 | | - | |
1126 | | - | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1127 | 1175 | | |
1128 | 1176 | | |
1129 | 1177 | | |
| |||
Lines changed: 112 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
413 | 422 | | |
414 | 423 | | |
415 | 424 | | |
416 | | - | |
417 | | - | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
418 | 431 | | |
419 | 432 | | |
420 | 433 | | |
| |||
448 | 461 | | |
449 | 462 | | |
450 | 463 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
455 | 490 | | |
456 | 491 | | |
457 | 492 | | |
| |||
467 | 502 | | |
468 | 503 | | |
469 | 504 | | |
470 | | - | |
| 505 | + | |
471 | 506 | | |
472 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
473 | 510 | | |
474 | 511 | | |
475 | 512 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
483 | 517 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
497 | 529 | | |
498 | 530 | | |
499 | 531 | | |
500 | 532 | | |
501 | 533 | | |
502 | | - | |
503 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
504 | 575 | | |
505 | 576 | | |
506 | 577 | | |
| |||
551 | 622 | | |
552 | 623 | | |
553 | 624 | | |
554 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
555 | 629 | | |
556 | 630 | | |
557 | 631 | | |
| |||
584 | 658 | | |
585 | 659 | | |
586 | 660 | | |
| 661 | + | |
587 | 662 | | |
588 | | - | |
| 663 | + | |
589 | 664 | | |
590 | 665 | | |
591 | 666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
573 | 574 | | |
574 | 575 | | |
575 | 576 | | |
| |||
1112 | 1113 | | |
1113 | 1114 | | |
1114 | 1115 | | |
1115 | | - | |
1116 | | - | |
| 1116 | + | |
| 1117 | + | |
1117 | 1118 | | |
1118 | 1119 | | |
1119 | 1120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
256 | 264 | | |
257 | 265 | | |
258 | 266 | | |
| |||
0 commit comments
Comments
(0)