Skip to content

Commit ee41093

Browse files
committed
Simplify implementation
1 parent 0da0cc8 commit ee41093

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/getMapfile.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
'use strict'
2-
const path = require('path')
3-
42
module.exports = function getMapfile(p) {
5-
const ext = path.extname(p)
6-
const base = path.basename(p)
7-
return p.replace(base, base.replace(ext, `${ext}.map`))
3+
return `${p}.map`
84
}

0 commit comments

Comments
 (0)