From: Bjørn Erik Pedersen Date: Tue, 21 Jul 2020 15:59:03 +0000 (+0200) Subject: resources/js: Add option for setting bundle format X-Git-Tag: v0.74.3~6 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0256959a358bb26b983c9d9496862b0fdf387621;p=brevno-suite%2Fhugo resources/js: Add option for setting bundle format Fixes #7503 --- diff --git a/docs/content/en/hugo-pipes/js.md b/docs/content/en/hugo-pipes/js.md index f361adc4..465854f3 100644 --- a/docs/content/en/hugo-pipes/js.md +++ b/docs/content/en/hugo-pipes/js.md @@ -45,6 +45,11 @@ defines [map] {{ $defines := dict "process.env.NODE_ENV" `"development"` }} ``` +format [string] {{< new-in "0.75.0" >}} +: The output format. + One of: `iife`, `cjs`, `esm`. + Default is `iife`, a self-executing function, suitable for inclusion as a