Skip to content

Commit

Permalink
updated language target to deal with Top-level await is not available…
Browse files Browse the repository at this point in the history
… in the configured target environment (chrome87, edge88, es2020, firefox78, safari14 + 3 overrides) error
  • Loading branch information
zkdan committed Jan 24, 2024
1 parent e30247b commit 2a45583
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
import { defineConfig } from 'vite'
import eslint from 'vite-plugin-eslint'
import tsconfigPaths from 'vite-tsconfig-paths'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [eslint(), tsconfigPaths(), react()],
base: process.env.BASE_URL ?? '/',
build: {
target:'ES2022',
sourcemap: true,
},
})

0 comments on commit 2a45583

Please sign in to comment.