-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
🚨 [REGRESSION][6.0.11 -> 6.1.0] Building with Web Worker fails #19458
Comments
I couldn't reproduce https://stackblitz.com/edit/vitejs-vite-lrkn1iir?file=src%2Fmain.js Please provide a full code which can reproduce your issue. |
Hello @repulsio. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
@hi-ogawa, thank you for starting the stackblitz. I've added some changes to reproduce the issue: https://stackblitz.com/edit/vitejs-vite-jno6nvaz?file=src%2Fmain.js Turns out that wrapping it inside of an IIFE and running Also it's really strange how commenting out |
It's likely a regression of #19010. This simple case should bail out early here, but some odd string vite/packages/vite/src/node/plugins/workerImportMetaUrl.ts Lines 144 to 149 in 00deea4
|
Thank you so much, @hi-ogawa ! |
Describe the bug
This used to build successfully in version
6.0.11
. Started failing in6.1.0
.Code:
Build:
Reproduction
Please see code below
Steps to reproduce
Code:
Build:
System Info
System: OS: Linux 6.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye) CPU: (10) arm64 unknown Memory: 6.23 GB / 7.65 GB Container: Yes Shell: 5.1.4 - /bin/bash Binaries: Node: 20.13.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.8.1 - /usr/local/bin/npm npmPackages: vite: ^6.1.0 => 6.1.0
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: