Just a heads up about this line. I've been integrating our (complex!) webpack config into monosize to allow the fixture to build and it's been throwing errors. However, there's only a single first line of the error output, not the full stack trace. So to get more info I've temporarily hacked this section to console log it.
TBH the code here looks fine so I suspect the extra lines of output is being swallowed up elsewhere.
https://github.com/microsoft/monosize/blob/351ae8e05fa2c01876120ff151f0255b50362c91/packages/monosize-bundler-webpack/src/runWebpack.mts#L97
Just a heads up about this line. I've been integrating our (complex!) webpack config into monosize to allow the fixture to build and it's been throwing errors. However, there's only a single first line of the error output, not the full stack trace. So to get more info I've temporarily hacked this section to console log it.
TBH the code here looks fine so I suspect the extra lines of output is being swallowed up elsewhere.