From 5a5ac1d2f1b87b9e4b52a9000b7dee2f57af5c43 Mon Sep 17 00:00:00 2001 From: Andreas Richter <708186+richtera@users.noreply.github.com> Date: Sat, 10 Sep 2022 11:05:45 -0400 Subject: [PATCH] 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) --- content/en/hugo-pipes/babel.md | 4 ++++ content/en/hugo-pipes/js.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/content/en/hugo-pipes/babel.md b/content/en/hugo-pipes/babel.md index 76a1d441d..7cf931f65 100755 --- a/content/en/hugo-pipes/babel.md +++ b/content/en/hugo-pipes/babel.md @@ -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 diff --git a/content/en/hugo-pipes/js.md b/content/en/hugo-pipes/js.md index f283b877c..ff29ca958 100644 --- a/content/en/hugo-pipes/js.md +++ b/content/en/hugo-pipes/js.md @@ -97,7 +97,7 @@ format [string] {{< new-in "0.74.3" >}} Default is `iife`, a self-executing function, suitable for inclusion as a