From 3e3458f09d37fe22d5ddfed239a62194760883f5 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 18 Feb 2023 15:59:07 -0800 Subject: [PATCH] Describe default source map behavior for js.build (#1974) Closes #1973 --- content/en/hugo-pipes/js.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/hugo-pipes/js.md b/content/en/hugo-pipes/js.md index c95688e68..6905a6555 100644 --- a/content/en/hugo-pipes/js.md +++ b/content/en/hugo-pipes/js.md @@ -41,7 +41,7 @@ minify [bool] inject [slice] : This option allows you to automatically replace a global variable with an import from another file. The path names must be relative to `assets`. See https://esbuild.github.io/api/#inject -shims +shims [map] : This option allows swapping out a component with another. A common use case is to load dependencies like React from a CDN (with _shims_) when in production, but running with the full bundled `node_modules` dependency during development: ```go-html-template @@ -84,13 +84,13 @@ defines [map] {{ $defines := dict "process.env.NODE_ENV" `"development"` }} ``` -format [string] +format [string] : The output format. One of: `iife`, `cjs`, `esm`. Default is `iife`, a self-executing function, suitable for inclusion as a