Skip to content

Commit 2c9ace1

Browse files
committed
chore: add modern targets
1 parent b523566 commit 2c9ace1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export default defineConfig({
5252
legacy({
5353
modernPolyfills: true,
5454
renderLegacyChunks: false,
55+
modernTargets: browserslist.loadConfig({
56+
path: fileURLToPath(new URL('.', import.meta.url)),
57+
}),
5558
}),
5659
Components({
5760
resolvers: [

0 commit comments

Comments
 (0)