-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
[bug]Vite production build lose order of execution in js #7264
Labels
Comments
dabuside
changed the title
[bud]Vite production build lose order of execution in js
[bug]Vite production build lose order of execution in js
Mar 11, 2022
According to the PR #6534
Lines 46 to 58 in dddda1e
You can now bump the vite version to v2.9.0-beta.0 to fix this issue. |
Works fine with vite@2.9.1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Step to Reproduction
vite dev
console output is100
vite build && vite preview
console output isundefined
Real UseCase: a npm package need global data which initialize in main app.js(script module).
production build puts all npm package in vendor(modulepreload), which call stack is defferent from dev mode.
Reproduction
https://stackblitz.com/edit/vitejs-vite-mngeim?file=index.html
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: