js: Remove external source map option

It was merged by accident and the implementation does not look correct.

Fixes #7932
This commit is contained in:
Bjørn Erik Pedersen
2020-11-04 19:09:40 +01:00
parent bf2837a314
commit 944150bafb
3 changed files with 3 additions and 11 deletions

View File

@@ -93,7 +93,6 @@ type Options struct {
contents string
sourcefile string
resolveDir string
workDir string
tsConfig string
}
@@ -365,12 +364,6 @@ func toBuildOptions(opts Options) (buildOptions api.BuildOptions, err error) {
switch opts.SourceMap {
case "inline":
sourceMap = api.SourceMapInline
case "external":
// When doing external sourcemaps we should specify
// out file and no out dir
sourceMap = api.SourceMapExternal
outFile = filepath.Join(opts.workDir, opts.TargetPath)
outDir = ""
case "":
sourceMap = api.SourceMapNone
default: