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: [] };