9 lines
259 B
JavaScript
9 lines
259 B
JavaScript
'use strict'
|
|
const path = require('path')
|
|
module.exports = function getMapfile(options) {
|
|
if (options.map && typeof options.map.annotation === 'string') {
|
|
return `${path.dirname(options.to)}/${options.map.annotation}`
|
|
}
|
|
return `${options.to}.map`
|
|
}
|