Closed mpfau closed 8 years ago
Thanks for posting. Can you clarify a little more how this alters the source map / output?
Sure! :-)
Environment:
Before applying the patch, the relative path to the sources was missing for all files transpiled with plugin-babel:
"sources":["classCallCheck.js","cjs.js","es6.js"]
This made it impossible for the browser to find the original source files. The same section looks as follows, after applying the patch:
"sources":["node_modules/systemjs-plugin-babel/babel-helpers/classCallCheck.js","src/cjs.js","src/es6.js"]
Sure thanks for clarifying!
Released in 0.0.18.
babel swallows the path of the source file if
sourceFileName
is not defined.