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

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

commit 535666e20fb8724faf2bff53497169f26d2fad43
Author: Randall Leeds <[email protected]>
AuthorDate: Sat Apr 23 20:13:04 2022 -0700

    Better specify targets for modern code output
    
    Set the esmodules target to eliminate browsers that are part of the
    browserslist defaults but that do not support modules. Set the node
    minimum node version.
---
 babel.config.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/babel.config.js b/babel.config.js
index dfa8a03..80d693b 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -89,6 +89,10 @@ module.exports = (api) => {
       ['@babel/env', envOptions],
       ['@babel/typescript', typescriptOptions],
     ],
-    targets: TEST ? { node: 'current' } : 'defaults',
+    targets: {
+      browsers: 'defaults',
+      esmodules: true,
+      node: TEST ? 'current' : '14.15',
+    },
   };
 };

Reply via email to