Skip to content

Commit

Permalink
chore: add modern targets
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Mar 12, 2024
1 parent b523566 commit 2c9ace1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export default defineConfig({
legacy({
modernPolyfills: true,
renderLegacyChunks: false,
modernTargets: browserslist.loadConfig({
path: fileURLToPath(new URL('.', import.meta.url)),
}),
}),
Components({
resolvers: [
Expand Down

0 comments on commit 2c9ace1

Please sign in to comment.