Skip to content

Commit

Permalink
fix: update config
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Feb 19, 2024
1 parent e10f375 commit b80437c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"plugin:prettier/recommended",
"./.eslintrc-auto-import.json"
],
"parser": "@typescript-eslint/parser"
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "eslint-plugin-vue"]
}
2 changes: 2 additions & 0 deletions vite.main.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { defineConfig } from 'vite';
export default defineConfig({
resolve: {
// Some libs that can run in both Web and Node.js, such as `axios`, we need to tell Vite to build them in Node.js.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
browserField: false,
mainFields: ['module', 'jsnext:main', 'jsnext'],
},
Expand Down

0 comments on commit b80437c

Please sign in to comment.