From fe4cd3ee375e446afa476250a41d37806948cc37 Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Sun, 27 Sep 2020 14:30:11 +0200 Subject: [PATCH] - First draft of babel 7 support --- test/e2e/scripts/transpile.js | 3 +++ tsconfig.json | 1 + 2 files changed, 4 insertions(+) diff --git a/test/e2e/scripts/transpile.js b/test/e2e/scripts/transpile.js index 37fbe7fc..741c3cfe 100644 --- a/test/e2e/scripts/transpile.js +++ b/test/e2e/scripts/transpile.js @@ -13,6 +13,9 @@ function transpile(dir) { presets: [ ['@babel/preset-env', { modules: false, + targets: { + node: true, + }, }], ['@babel/preset-typescript', { onlyRemoveTypeImports: true, diff --git a/tsconfig.json b/tsconfig.json index 12b383c9..a79f15a2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "strictNullChecks": true, "strictFunctionTypes": true, "removeComments": true, + "isolatedModules": true, "allowSyntheticDefaultImports": true },