You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/07/31 09:05:32 UTC

[incubator-annotator] 05/07: Enable support for shipped ECMAScript proposals

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit 3430aa56c9e0fecacde30257321c3db45edf60ef
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Fri Jul 31 01:59:59 2020 -0700

    Enable support for shipped ECMAScript proposals
---
 babel.config.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/babel.config.js b/babel.config.js
index 8f358f4..5d5dea8 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -50,8 +50,8 @@ module.exports = (api) => {
 
   // Options for the @babel/transform-runtime plugin.
   const runtimeOptions = {
-    // Use core-js version 3.
-    corejs: 3,
+    // Use corejs version 3 with shipped proposals.
+    corejs: { proposals: true, version: 3 },
     // Use helpers formatted for the target environment.
     useESModules: !CJS && !TEST,
   };