js.Build: Add SourceMap flag with inline option
authorAndreas Richter <richtera@users.noreply.github.com>
Tue, 1 Sep 2020 14:19:08 +0000 (10:19 -0400)
committerGitHub <noreply@github.com>
Tue, 1 Sep 2020 14:19:08 +0000 (16:19 +0200)
commitc6b661de826f3ed8768a97a5178b4e020cb2ace1
tree0ee180ed3e8e57faa2d8a9c78c31aec129558c66
parentcdfd1c99baa22d69e865294dfcd783811f96c880
js.Build: Add SourceMap flag with inline option

Added a flag to allow turning on sourcemap in ESBuild. The current support
can only support inline or true as value for sourcemap. This is because
the way ESBuild is invoked it doesn't have a separate output path
to write the mapfile external to the asset pipeline. Add disable for "" and "0".
Add test script and make sure mage check passes.

Fixes #7607
go.mod
go.sum
resources/resource_transformers/js/build.go
resources/resource_transformers/js/build_test.go