Line limit from esbuild breaks vite production build #16529
Labels
contribution welcome
feat: build
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
Cross-post from esbuild: evanw/esbuild#3735
Using low values for lineLimit such as 160 or 80 seems to break dynamic import from Vite as seen in my results below:
Line limit 160:
Line limit 500:
the actual code itself is a function that imports a svelte file:
I don't fully understand the underlying but due to the
"\
it seems like Vite no longer replaces__VITE_PRELOAD__
Reproduction
n/a
Steps to reproduce
Unfortunately I couldn't manage to properly reproduce this issue in a minimal example, but in our large code-base it definitely happens consistently
System Info
Used Package Manager
pnpm
Logs
n/a
Validations
The text was updated successfully, but these errors were encountered: