Closed agilgur5 closed 2 years ago
Merging #80 (55e6e3d) into main (b14060c) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## main #80 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 75 75
Branches 9 9
=========================================
Hits 75 75
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b14060c...55e6e3d. Read the comment docs.
Summary
Specify a
version
in@babel/plugin-transform-runtime
's config to further optimize the output with newer helpers.Details
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#L624possibleConstructorReturn
andgetPrototypeOf
helpersroughly ~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 changesMisc
Noticed that this was a field when stumbling upon the
@babel/plugin-transform-runtime
options in the Babel docs. Tested this simultaneously with #79 as they both affect the output