Adding the bundler to the runtime is the way to go in my opinion, the code you write in your scripts/server should run exactly the same as in the browser and not require separate configuration (besides bundling-specific things like how to split your modules for lazy loading).
It is crazy that every web framework these days is trying to re-solve bundling for browsers