From f00bdeb3f11771e7b6a8b41e30fc19f23ce6e6fd Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 19 May 2022 13:42:14 +0100 Subject: [PATCH] Merge pull request #8014 from overleaf/ae-babel-test-env Remove test environment from Babel config GitOrigin-RevId: c812e534e82e57bfdf759b04b9753565a7781ea2 --- services/web/babel.config.json | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/services/web/babel.config.json b/services/web/babel.config.json index dd1f1663b6..912c13b8ad 100644 --- a/services/web/babel.config.json +++ b/services/web/babel.config.json @@ -11,24 +11,5 @@ ["@babel/react", { "runtime": "automatic" }], "@babel/typescript" ], - "plugins": ["angularjs-annotate", "macros"], - // Target our current Node version in test environment, to transform and - // polyfill only what's necessary - "env": { - "test": { - "presets": [ - [ - "@babel/env", - { - "targets": { "node": "current" }, - "useBuiltIns": "usage", - // This version must be aligned with the `core-js` version in `package.json` - "corejs": { "version": 3.6 } - } - ], - ["@babel/react", { "runtime": "automatic" }], - "@babel/typescript" - ] - } - } + "plugins": ["angularjs-annotate", "macros"] }