From 32577d13c77dbfed08b0d4975b3666a5a38cbe3a Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Wed, 13 Jan 2021 16:31:55 +0200 Subject: [PATCH] We actually need to disable sourceMaps when we compile them as well --- js/compiler/compiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/compiler/compiler.go b/js/compiler/compiler.go index f72de6a8175..8eaafd5f2a6 100644 --- a/js/compiler/compiler.go +++ b/js/compiler/compiler.go @@ -74,7 +74,7 @@ func (c *Compiler) Transform(src, filename string) (code string, srcmap *SourceM func (c *Compiler) Compile(src, filename, pre, post string, strict bool, compatMode lib.CompatibilityMode) (*goja.Program, string, error) { code := pre + src + post - ast, err := parser.ParseFile(nil, filename, code, 0) + ast, err := parser.ParseFile(nil, filename, code, 0, parser.WithDisableSourceMaps) if err != nil { if compatMode == lib.CompatibilityModeExtended { code, _, err = c.Transform(src, filename)