RunnableDevEnvironment
is export from .d.ts
as class, but it's not exported from .js
#18998
Open
7 tasks done
Labels
Describe the bug
This is exported as type in the source, but it looks like this is somehow dropped in packaged dts.
vite/packages/vite/src/node/index.ts
Lines 24 to 29 in 96f123a
This probably makes IDE to autocomplete
RunnableDevEnvironment
withouttype
and that got me runtime errors several times.Reproduction
https://stackblitz.com/edit/vitejs-vite-zmc8qxuk?file=vite.config.ts
Steps to reproduce
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.0.3 => 6.0.3
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: