You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SSR transform doesn't hoist __vite_ssr_import__ for re-export. I think hoisting should give more intuitive execution order. The issue is recognized by a following test and probably already discussed in #14468 and #14441.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
Related vitest-dev/vitest#4143 (comment)
On Node:
On Vite module runner:
SSR transform doesn't hoist
__vite_ssr_import__
for re-export. I think hoisting should give more intuitive execution order. The issue is recognized by a following test and probably already discussed in #14468 and #14441.vite/packages/vite/src/node/ssr/__tests__/ssrTransform.spec.ts
Lines 1247 to 1270 in 172cbed
The situation might have changed after #18983, so I'll check what happens if we hoist these now.
Reproduction
https://stackblitz.com/edit/vitejs-vite-ffvhx4qg?file=src%2Fmain.js
Steps to reproduce
Open stackblitz
System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 20.19.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.8.2 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: ^6.2.2 => 6.2.6
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: