Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Commit cbd8f67

Browse files
authored
Fixed mapping to original file in sourcemap
babel swallows the path of the source file if `sourceFileName` is not defined.
1 parent 4e7436f commit cbd8f67

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugin-babel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ exports.translate = function(load, traceOpts) {
171171
plugins: plugins,
172172
presets: presets,
173173
filename: load.address,
174+
sourceFileName: load.address,
174175
moduleIds: false,
175176
sourceMaps: traceOpts && traceOpts.sourceMaps || babelOptions.sourceMaps,
176177
inputSourceMap: load.metadata.sourceMap,

0 commit comments

Comments
 (0)