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 8d0fbb0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^1.3.6",
"browserslist": "^4.23.0",
"browserslist-to-esbuild": "^2.1.1",
"cypress": "^13.6.6",
"eslint": "^8.57.0",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import browserslistToEsbuild from 'browserslist-to-esbuild'
import postcssPresetEnv from 'postcss-preset-env'
import regexpPlugin from 'rollup-plugin-regexp'
import * as mdicons from '@mdi/js'
import browserslist from 'browserslist'

const mdi: Record<string, string> = {}
Object.keys(mdicons).forEach((key) => {
Expand Down Expand Up @@ -52,6 +53,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 8d0fbb0

Please sign in to comment.