-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preprocess config not working (postcss, babel, etc) #2277
Comments
There are logs when running the repro. Here's mine:
Looks like Vite's import scan runs esbuild on the code, which causes the error. I couldn't find an existing issue in Vite though, since this should technically affect |
Found a vite issue: vitejs/vite#1450. It's closed but it's not really fixed per vitejs/vite@0503d42#commitcomment-45804097 |
It looks like this is called the pipeline operator:
I'm not really sure how this could be fixed other than by esbuild adding support for the pipeline operator or Vite somehow completely reimplementing dependency scanning. You could request support for the pipeline operator from esbuild. I think for now I would just say that experimental syntax is not supported |
For anyone is experiencing the same, add the follwing to
|
I'd do that with caution, that will basically turn off pre-bundling and you have to make sure all dependencies have an ESM export variant, or manually add dependencies to |
Thanks for reminding. That's the only solution I could find to get back the behavior before |
Describe the bug
The preprocess config breaks after version
1.0.0-next.146
This issue is probably caused by #2137. After small investigation I found the error happens only when no cache is detected and
vite
tries to rebuild everyting with config.https://github.com/vitejs/vite/blob/fb406ce4c0fe6da3333c9d1c00477b2880d46352/packages/vite/src/node/build.ts#L385-L387
Reproduction
https://github.com/yuanchuan/sveltekit-issues/tree/main/preprocess-not-working
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: