Skip to content

Commit

Permalink
Append .map extension to output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
camerondubas committed Jan 9, 2024
1 parent 6ef2518 commit b987ea4
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion lib/process-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const getSourceMapContent = require('./get-sourcemap-content');

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

let mapDir;
if (_options.sourceMapDir) {
Expand Down
Loading

0 comments on commit b987ea4

Please sign in to comment.