From 2874ae1aed0d26124ad485438e41a3f6c9063af9 Mon Sep 17 00:00:00 2001 From: Michiel Westerbeek Date: Wed, 21 Mar 2018 11:30:35 +0100 Subject: [PATCH] Changed null to undefined for sourceFileName and sourceMapTarget. Babel 7 returns errors for sourceFileName and sourceMapTarget because they are specified as null. Error: .sourceFileName must be a string, or undefined --- source/runner/runners/utils/transpiler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/runner/runners/utils/transpiler.ts b/source/runner/runners/utils/transpiler.ts index 24dbf4a61..d84670e74 100644 --- a/source/runner/runners/utils/transpiler.ts +++ b/source/runner/runners/utils/transpiler.ts @@ -87,8 +87,8 @@ export const babelify = (content: string, filename: string, extraPlugins: string filename, filenameRelative: filename, sourceMap: false, - sourceFileName: null, - sourceMapTarget: null, + sourceFileName: undefined, + sourceMapTarget: undefined, sourceType: "module", plugins: [...extraPlugins, ...options.plugins], }