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/26 23:54:13 UTC

[incubator-annotator] 02/09: Make babel-register a little terser

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 6a86565bb0f5489d82551d5f997f24b8bc589fb3
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Fri Jul 24 18:21:59 2020 -0700

    Make babel-register a little terser
---
 babel-register.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/babel-register.js b/babel-register.js
index 929499a..87e48ab 100644
--- a/babel-register.js
+++ b/babel-register.js
@@ -1,3 +1 @@
-const register = require('@babel/register').default;
-
-register({ extensions: ['.ts', '.js'] });
+require('@babel/register')({ extensions: ['.js', '.ts'] });