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?


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.

1 Like

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

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.