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/01/18 05:49:31 UTC

[incubator-annotator] 02/02: Remove workarounds for broken babel runtime ESM helpers

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

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

commit 82ce0b15f500990851fabbc4aa0b0b19dd238f30
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sun Jan 17 21:47:46 2021 -0800

    Remove workarounds for broken babel runtime ESM helpers
    
    With the upgrade to v7.12 packages, the workarounds for babel/babel#8462
    are no longer necessary.
---
 babel.config.js | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/babel.config.js b/babel.config.js
index 1055699..a3ecf26 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -62,15 +62,6 @@ module.exports = (api) => {
             ),
           }
         : null),
-      // TODO: Remove after babel/babel#8462 ships.
-      '^@babel/runtime-corejs3/core-js/(.+)$':
-        '@babel/runtime-corejs3/core-js/\\1.js',
-      '^@babel/runtime-corejs3/core-js-stable/(.+)$':
-        '@babel/runtime-corejs3/core-js-stable/\\1.js',
-      '^@babel/runtime-corejs3/helpers/(.+)$':
-        '@babel/runtime-corejs3/helpers/\\1.js',
-      '^@babel/runtime-corejs3/regenerator$':
-        '@babel/runtime-corejs3/regenerator/index.js',
     },
     extensions: ['.ts', '.tsx', ...DEFAULT_EXTENSIONS],
   };
@@ -80,8 +71,7 @@ module.exports = (api) => {
     // Use corejs version 3.
     corejs: { version: 3 },
     // Use helpers formatted for the target environment.
-    // TODO: Re-enable after babel/babel#8462 ships.
-    // useESModules: !CJS && !TEST,
+    useESModules: !CJS && !TEST,
   };
 
   return {