Commit 3db849f
committed
optim: specify version in @babel/plugin-transform-runtime
- the default is 7.0.0, but we are on a newer version, so we can use
newer / more optimized helpers
- `createSuper` now seems to be used, which required 7.9.0:
https://github.com/babel/babel/blob/9199565fa08d840c8f1cc86c1b22be119b538f2f/packages/babel-helpers/src/helpers.ts#L624
- this seems to replace the `possibleConstructorReturn` and
`getPrototypeOf` helpers
- roughly ~6% minified size decrease as a result!
- change babel.config.js's caching to include @babel/runtime's version
since we would need to rebuild if it changes1 parent bcf3c3f commit 3db849f
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | | - | |
4 | | - | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
0 commit comments