{{ resources.Get "script.js" | js.Build }}
uses the ESBuild api as a single entry point and expects a single output file (to pass through additional pipes).
ESBuild, though, sometimes creates multiple output files from a single entry point, e.g. code splitting, external source maps, and “import *.css” statements in javascript files.
This leads to my question: how will/should Hugo handle multiple outputs from ESBuild in Hugo Pipes? Currently, Hugo already added external source maps as a developer utility. The css example is an issue I encountered (#8411) and the code splitting would be an issue if Hugo further integrated with ESBuild.