Add documentation for babel sourceMap (#1492)

* Document sourceMap argument on babel.

* Add docs for babel sourceMap.

* inputSourceMap already defaults to true inside of babel.

* @davidsneighbour agree, better just not to mention it since it does default to true. It used to be a required setting.

* Fix missing extenal sourceMap docs for js.Build which was also part of the PR

* Missing change (missing from previous commit)
This commit is contained in:
Andreas Richter
2022-09-10 11:05:45 -04:00
committed by GitHub
parent 899b7117ce
commit 5a5ac1d2f1
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -65,6 +65,10 @@ compact [bool]
verbose [bool]
: Log everything
sourceMap [string]
: Output `inline` or `external` sourcemap from the babel compile. External sourcemaps will be written to the target with the output file name + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
### Examples
```go-html-template
+1 -1
View File
@@ -97,7 +97,7 @@ format [string] {{< new-in "0.74.3" >}}
Default is `iife`, a self-executing function, suitable for inclusion as a <script> tag.
sourceMap
: Whether to generate source maps. Enum, currently only `inline` (we will improve that).
: Whether to generate `inline` or `external` sourcemap from esbuild. External sourcemaps will be written to the target with the output file name + ".map". Input sourcemaps can be read from js.Build and node modules and combined into the output sourcemaps.
### Import JS code from /assets