js.Build sourcemap not generated

I went through documentation of js.Build but I haven’t found anything about sourcemap for generated files.

The esbuild is supporting sourcemaps, though.

How can I generate sourcemaps for output files?

Thanks

I have updated the documentation. You need to do

{{ $js := resources.Get "js/main.js" | js.Build  (dict "sourcemap" "inline" ) }}

Inline is currently the only option.

OK, my example was slightly off (copy and paste …)