Commit cb744c2
committed
Use babel for transpiling rather than closure compiler
We recently switch from using closure-compiler with `WHITESPACE_ONLY` to
closure-compiler with `SIMPLE_OPTIMIZATIONS`. However this had the
negative side effect that all input need to be free of closure compiler
warnings, and this turned out not to be practical for all users.
See #20810 for more on this
When selecting a transpilation tool use I also evaluated `swx` (written
in rust) and `esbuild` (written in go). `esbuild` was rejected
because the simply don't support ES5
(evanw/esbuild#297). `swx` was rejected
because it almost doubled the side of our `node_modules` directory by
adding two 50mb binary files.1 parent dabbde6 commit cb744c2
File tree
7 files changed
+6262
-2532
lines changed- src
- test
- tools
7 files changed
+6262
-2532
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13130 | 13130 | | |
13131 | 13131 | | |
13132 | 13132 | | |
13133 | | - | |
13134 | 13133 | | |
13135 | 13134 | | |
13136 | 13135 | | |
| |||
13142 | 13141 | | |
13143 | 13142 | | |
13144 | 13143 | | |
13145 | | - | |
13146 | 13144 | | |
13147 | 13145 | | |
13148 | 13146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
509 | 509 | | |
510 | 510 | | |
511 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
512 | 521 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
520 | 541 | | |
521 | 542 | | |
522 | 543 | | |
| |||
581 | 602 | | |
582 | 603 | | |
583 | 604 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
| 605 | + | |
| 606 | + | |
591 | 607 | | |
592 | 608 | | |
593 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1150 | 1147 | | |
1151 | 1148 | | |
1152 | 1149 | | |
| |||
2203 | 2200 | | |
2204 | 2201 | | |
2205 | 2202 | | |
2206 | | - | |
| 2203 | + | |
2207 | 2204 | | |
2208 | 2205 | | |
2209 | 2206 | | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
2214 | 2212 | | |
2215 | 2213 | | |
2216 | 2214 | | |
| |||
0 commit comments