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:00 UTC

[incubator-annotator] 07/08: Move babel targets to the top level of the configuration

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 5c62d9e9a46ac4bb99431a99755806273049d590
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sat Apr 3 22:33:31 2021 -0700

    Move babel targets to the top level of the configuration
---
 babel.config.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/babel.config.js b/babel.config.js
index 6ef6fcd..e274bf9 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -34,8 +34,6 @@ module.exports = (api) => {
     bugfixes: true,
     // Transform module syntax if necessary.
     modules: CJS || TEST ? 'commonjs' : false,
-    // Set target environment to default browsers.
-    targets: TEST ? { node: 'current' } : 'defaults',
   };
 
   // Options for the @babel/typescript preset.
@@ -85,5 +83,6 @@ module.exports = (api) => {
       ['@babel/env', envOptions],
       ['@babel/typescript', typescriptOptions],
     ],
+    targets: TEST ? { node: 'current' } : 'defaults',
   };
 };