Skip to content

Commit

Permalink
perf: 升级auto 插件版本
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Oct 28, 2022
1 parent fa02ccc commit 5639716
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
root: true,
extends: [
// add more generic rulesets here, such as:
'eslint:recommended',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"unplugin-auto-import": "^0.11.1",
"unplugin-vue-components": "^0.22.4",
"vite": "^3.0.0",
"vite-plugin-autogeneration-import-file": "^2.1.0",
"vite-plugin-autogeneration-import-file": "^3.0.0",
"vite-plugin-compression": "^0.5.1",
"vite-svg-loader": "^3.4.0",
"vue-eslint-parser": "^9.0.3",
Expand Down
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import vue from '@vitejs/plugin-vue';
import svgLoader from 'vite-svg-loader';
import { resolve } from 'path';
import * as fs from 'fs';
import { autoImport, resolver } from 'vite-plugin-autogeneration-import-file';
import { createPlugin } from 'vite-plugin-autogeneration-import-file';
import {vueSetUpExtend} from '@yuntian001/vue-setup-extend';
import { viteMockServe } from '@meadmin-cn/vite-plugin-mock';
import { ConfigEnv, UserConfigExport } from 'vite';
Expand All @@ -24,6 +24,8 @@ import { loadMessageConfig } from './src/config/locale';
function pathResolve(dir: string) {
return resolve(__dirname, '.', dir);
}

const {autoImport, resolver} = createPlugin();
export default ({ command, mode }: ConfigEnv): UserConfigExport => {
return {
envPrefix: 'ME_',
Expand Down

0 comments on commit 5639716

Please sign in to comment.