Skip to content

Commit b987ea4

Browse files
committed
Append .map extension to output filename
1 parent 6ef2518 commit b987ea4

File tree

2 files changed

+66
-66
lines changed

2 files changed

+66
-66
lines changed

lib/process-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const getSourceMapContent = require('./get-sourcemap-content');
99

1010
module.exports = async function processFile(inFile, outFile, relativePath, outDir, silent, _options) {
1111
let src = fs.readFileSync(inFile, 'utf-8');
12-
let mapName = `${path.basename(outFile).replace(/\.js$/, '')}.map`;
12+
let mapName = `${path.basename(outFile)}.map`;
1313

1414
let mapDir;
1515
if (_options.sourceMapDir) {

0 commit comments

Comments
 (0)