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
I'm experiencing an issue after upgrading ESBuild to version 0.18.20.
To be fully transparent, I'm using Vite 4.4.9 (I recently upgraded it by a few minors) and it looks like ESBuild was also upgraded as side-effect (just normal dependencies semver updates).
Every time I run the usual npm run build, I get:
error during build:
Error: Transform failed with 5 errors:
assets/header-!~{008}~.js:5:2: ERROR: Transforming const to the configured target environment ("chrome79", "edge114", "firefox114", "ios12", "safari9.1" + 3 overrides) is not supported yet
assets/header-!~{008}~.js:6:57: ERROR: Transforming const to the configured target environment ("chrome79", "edge114", "firefox114", "ios12", "safari9.1" + 3 overrides) is not supported yet
assets/header-!~{008}~.js:8:4: ERROR: Transforming const to the configured target environment ("chrome79", "edge114", "firefox114", "ios12", "safari9.1" + 3 overrides) is not supported yet
assets/header-!~{008}~.js:786:0: ERROR: Transforming const to the configured target environment ("chrome79", "edge114", "firefox114", "ios12", "safari9.1" + 3 overrides) is not supported yet
assets/header-!~{008}~.js:788:0: ERROR: Transforming const to the configured target environment ("chrome79", "edge114", "firefox114", "ios12", "safari9.1" + 3 overrides) is not supported yet
If I remove the target option from my Vite config file, the issue will disappear.
Hello,
I'm experiencing an issue after upgrading ESBuild to version
0.18.20
.To be fully transparent, I'm using Vite
4.4.9
(I recently upgraded it by a few minors) and it looks likeESBuild
was also upgraded as side-effect (just normal dependencies semver updates).Every time I run the usual
npm run build
, I get:If I remove the
target
option from my Vite config file, the issue will disappear.I'm aware that Vite uses ESBuild behind the scenes, and the
target
property is actually passed to it.What could be causing the issue?
The text was updated successfully, but these errors were encountered: