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 2021/04/04 05:37:01 UTC

[incubator-annotator] 08/08: Enable support for proposals in the babel runtime transformation

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 a0153ca752018f9e15ac69f2f0cd4c4ac72086a9
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sat Apr 3 22:34:20 2021 -0700

    Enable support for proposals in the babel runtime transformation
    
    Enable support for proposals in @babel/plugin-transform-runtime because
    ESLint and TypeScript will take care of rejecting syntax that is not
    enabled by the configured language versions and library definitions, but
    proposals that have shipped.
---
 babel.config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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