Skip to content

Commit

Permalink
feat(css): support es2023 build target for lightningcss (#17998)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea authored Sep 4, 2024
1 parent cf8ced5 commit 1a76300
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3157,6 +3157,8 @@ const esMap: Record<number, string[]> = {
2021: ['chrome85', 'edge85', 'safari14.1', 'firefox80', 'opera71'],
// https://caniuse.com/?search=es2022
2022: ['chrome94', 'edge94', 'safari16.4', 'firefox93', 'opera80'],
// https://caniuse.com/?search=es2023
2023: ['chrome110', 'edge110', 'safari16.4', 'opera96'],
}

const esRE = /es(\d{4})/
Expand Down

0 comments on commit 1a76300

Please sign in to comment.