Skip to content

Commit

Permalink
Revert sourceMap file property change.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Apr 27, 2018
1 parent dd6e195 commit 7546ac7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-core/src/transformation/normalize-opts.js
Expand Up @@ -38,7 +38,7 @@ export default function normalizeOptions(config: ResolvedConfig): {} {

generatorOpts: {
// General generator flags.
filename: filenameRelative,
filename,

auxiliaryCommentBefore: opts.auxiliaryCommentBefore,
auxiliaryCommentAfter: opts.auxiliaryCommentAfter,
Expand Down
1 change: 0 additions & 1 deletion packages/babel-generator/src/source-map.js
Expand Up @@ -19,7 +19,6 @@ export default class SourceMap {
get() {
if (!this._cachedMap) {
const map = (this._cachedMap = new sourceMap.SourceMapGenerator({
file: this._opts.filename,
sourceRoot: this._opts.sourceRoot,
}));

Expand Down

0 comments on commit 7546ac7

Please sign in to comment.