can not use export * as variable from "./somefile"
and import * as variable from "./somefile"
in same file with vite v6
#19329
Labels
Describe the bug
The issue is initially reported on vitest vitest-dev/vitest#7394. It looks like ssr transform panics for the following input:
Reproduction
https://stackblitz.com/edit/github-pnyojxdr?file=fs.js
Steps to reproduce
Open stackblitz and run
node repro-vite.js
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: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: ^6 => 6.0.11
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: