-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
tsconfig target is not ignored for both dev and build #10167
Comments
It seems there's a change in esbuild that is affecting this. Transforming esbuild repl 0.15.7 For a workaround, you could set |
@sapphi-red 's workaround to change the esbuild.target worked for me |
Another related bug: https://github.com/brillout/vps-vite3.1-bug. For this bug setting I would have expected |
Describe the bug
When target:
es5
is set intsconfig.json
andvite.config.ts
exists, Vite fails to startwith
esbuild
errorsSeems to be an issue with
3.1.0
and upworking example with
3.0.9
:https://stackblitz.com/edit/vitejs-vite-p9qdrs?file=package.json&terminal=dev
very likely related to
#9457
Reproduction
https://stackblitz.com/edit/vitejs-vite-wrp8cb?file=package.json&terminal=dev
System Info
System: OS: Linux 5.0 undefined CPU: (4) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm npmPackages: vite: ^3.1.0 => 3.1.0
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: