nitro icon indicating copy to clipboard operation
nitro copied to clipboard

error when using with `webpack-dev-middleware`

Open danielroe opened this issue 1 year ago • 0 comments

Environment

Nitro v2.9.6

Reproduction

nitro & webpack-dev-middleware (Sorry, stackbliz doesn't seem to work.) https://stackblitz.com/edit/github-yqcgdy

express & webpack-dev-middleware (not reproduced) https://stackblitz.com/edit/github-mawhuh

Strangely, with nitro, the requested bundle is broken.

reproduction from @wattanx

Describe the bug

When loading a webpack bundle, long lines can be truncated and therefore invalid JS is returned.

Additional context

originally https://github.com/nuxt/nuxt/issues/26951

Logs

No response

danielroe avatar Jun 17 '24 14:06 danielroe