-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Labels
Description
Description
When using the Cloudflare Vite plugin, it sets the build target to "es2024", which lead to the following error being thrown on build:
error during build:
Build failed with 1 error:
[plugin vite:css-post]
Error: [lightningcss minify] Unsupported target "es2024"
Suggested solution
I saw that there was a PR to add "es2023" as a build target for the CSS plugin. I attempted to create a similar PR but notices that caniuse doesn't list "es2024" yet. Not sure was this mean for Vite, I created a PR that would basically add "es2024" as an alias for "es2023" but am happy to adjust based on your guidance.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.