Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

browserslist: Stop transpiling for pre-ES2019 browsers.

Anders Kaseorge2e645a183c8
diff --git a/.browserslistrc b/.browserslistrc
index 93f56cacfbd..b09754bd8b0 100644
--- a/.browserslistrc
+++ b/.browserslistrc
@@ -2,4 +2,4 @@
> 0.15% in US
last 2 versions
Firefox ESR
-not dead
+not dead and supports async-functions
diff --git a/babel.config.js b/babel.config.js
index f48e32da605..43110747786 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -15,7 +15,6 @@ module.exports = {
"@babel/preset-env",
{
corejs: "3.20",
- loose: true, // Loose mode for…of loops are 5× faster in Firefox
shippedProposals: true,
useBuiltIns: "usage",
},
diff --git a/tools/ci/production-build b/tools/ci/production-build
index 7e8b70b826b..f2c9a37efec 100755
--- a/tools/ci/production-build
+++ b/tools/ci/production-build
@@ -44,9 +44,9 @@ cp -a \
\
/tmp/production-build
-# Check that webpack bundles use only ES5 syntax.
+# Check that webpack bundles use only ES2019 syntax.
tar -C /tmp -xzf /tmp/production-build/zulip-server-test.tar.gz zulip-server-test/prod-static/serve/webpack-bundles
(
GLOBIGNORE=/tmp/zulip-server-test/prod-static/serve/webpack-bundles/katex-cli.js
- yarn run es-check es5 /tmp/zulip-server-test/prod-static/serve/webpack-bundles/*.js
+ yarn run es-check es2019 /tmp/zulip-server-test/prod-static/serve/webpack-bundles/*.js
)