fix: distribute proper source maps in npm distribution packages (#9877)
Refs #9101
This commit is contained in:
@@ -16,6 +16,12 @@ function getRepoInfo() {
|
||||
}
|
||||
}
|
||||
|
||||
function getDevtool(sourcemaps, minimize) {
|
||||
if (!sourcemaps) return false
|
||||
return minimize ? "source-map" : "cheap-module-source-map"
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getRepoInfo,
|
||||
getDevtool,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user