Skip to content

Commit

Permalink
Changed null to undefined for sourceFileName and sourceMapTarget.
Browse files Browse the repository at this point in the history
Babel 7 returns errors for sourceFileName and sourceMapTarget because they are specified as null.
Error: .sourceFileName must be a string, or undefined
  • Loading branch information
happylinks authored Mar 21, 2018
1 parent b11291e commit 2874ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/runner/runners/utils/transpiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
}
Expand Down

0 comments on commit 2874ae1

Please sign in to comment.