Skip to content

Commit

Permalink
Simplify implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Jul 6, 2019
1 parent 0da0cc8 commit ee41093
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/getMapfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
'use strict'
const path = require('path')

module.exports = function getMapfile(p) {
const ext = path.extname(p)
const base = path.basename(p)
return p.replace(base, base.replace(ext, `${ext}.map`))
return `${p}.map`
}

0 comments on commit ee41093

Please sign in to comment.