babel: Enable shippedProposals.

This has the consequence of turning on loose mode for
@babel/proposal-class-properties, which generates slightly smaller
code.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-10-03 15:22:55 -07:00
parent 3e6cc49ab5
commit b57895cd37
1 changed files with 1 additions and 4 deletions

View File

@ -7,14 +7,11 @@ module.exports = {
{ {
corejs: 3, corejs: 3,
loose: true, // Loose mode for…of loops are 5× faster in Firefox loose: true, // Loose mode for…of loops are 5× faster in Firefox
shippedProposals: true,
useBuiltIns: "usage", useBuiltIns: "usage",
}, },
], ],
"@babel/typescript", "@babel/typescript",
], ],
plugins: [
"@babel/proposal-class-properties",
["@babel/plugin-proposal-unicode-property-regex", {useUnicodeFlag: false}],
],
sourceType: "unambiguous", sourceType: "unambiguous",
}; };