We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 332b84d commit 45e686eCopy full SHA for 45e686e
scripts/build.js
@@ -108,7 +108,7 @@ function buildFile(file, silent) {
108
let {code, map} = babel.transformFileSync(file, options);
109
110
if (!file.endsWith('.d.ts') && map.sources.length > 0) {
111
- code = `${code}\n\n//# sourceMappingURL=${fileName}.map`;
+ code = `${code}\n\n//# sourceMappingURL=${destPath}.map`;
112
map.sources = [path.relative(path.dirname(destPath), file)];
113
fs.writeFileSync(`${destPath}.map`, JSON.stringify(map));
114
}
0 commit comments