mirror of
https://github.com/zhigang1992/esbuild.git
synced 2026-04-29 18:06:15 +08:00
Add Source Map sourceRoot Support (#1028)
This commit is contained in:
@@ -159,6 +159,14 @@ func parseOptionsImpl(
|
||||
}
|
||||
hasBareSourceMapFlag = false
|
||||
|
||||
case strings.HasPrefix(arg, "--source-root="):
|
||||
sourceRoot := arg[len("--source-root="):]
|
||||
if buildOpts != nil {
|
||||
buildOpts.SourceRoot = sourceRoot
|
||||
} else {
|
||||
transformOpts.SourceRoot = sourceRoot
|
||||
}
|
||||
|
||||
case strings.HasPrefix(arg, "--sources-content="):
|
||||
value := arg[len("--sources-content="):]
|
||||
var sourcesContent api.SourcesContent
|
||||
|
||||
Reference in New Issue
Block a user