mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user