-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
has workaroundp4-importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)
Description
Describe the bug
When target: es5 is set in tsconfig.json and vite.config.ts exists, Vite fails to start
with esbuild errors
ERROR: Transforming const to the configured target environment ("ES5") is not supported yet
Seems to be an issue with 3.1.0 and up
working example with 3.0.9:
https://stackblitz.com/edit/vitejs-vite-p9qdrs?file=package.json&terminal=dev
very likely related to
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.0Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- 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.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
has workaroundp4-importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)