From a81a0d0f8430fcd13d89655d49a26abf751f5414 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Mon, 26 Sep 2016 16:31:05 +0200 Subject: [PATCH] Fix fileName options passed to babylon (#4570) The filename options used by babylon is called `sourceFilename` and not `filename`. Therefore the option should be adjusted to be called `sourceFilename`. --- packages/babel-core/src/transformation/file/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/babel-core/src/transformation/file/index.js b/packages/babel-core/src/transformation/file/index.js index 21913e8db7..794222e458 100644 --- a/packages/babel-core/src/transformation/file/index.js +++ b/packages/babel-core/src/transformation/file/index.js @@ -53,6 +53,7 @@ export default class File extends Store { nonStandard: this.opts.nonStandard, sourceType: this.opts.sourceType, filename: this.opts.filename, + sourceFileName:this.opts.filename, plugins: [] };