Skip to content

Commit c49f6a2

Browse files
committed
chore: remove splitVendorChunkPlugin
1 parent 4bb615a commit c49f6a2

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

vite.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { fileURLToPath, URL } from 'node:url';
22
import { dirname, resolve } from 'node:path';
3-
import { defineConfig, splitVendorChunkPlugin, type UserConfig } from 'vite';
3+
import { defineConfig } from 'vite';
44
import vue from '@vitejs/plugin-vue';
55
import Components from 'unplugin-vue-components/vite';
66
import vueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
77
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
88
import { visualizer } from 'rollup-plugin-visualizer';
9-
import packageJson from './package.json' with { type: 'json' };
9+
import packageJson from './package.json' with { type: 'json' };
1010

1111
process.env.VITE_APP_VERSION = packageJson.version;
1212
process.env.NODE_ENV = process.env.MOCK ? 'mockServiceWorker' : process.env.NODE_ENV;
@@ -29,7 +29,6 @@ export default defineConfig({
2929
iconDirs: [resolve(process.cwd(), 'src/assets/images/svgIcons')],
3030
}),
3131
visualizer({ gzipSize: true }),
32-
splitVendorChunkPlugin(),
3332
],
3433
esbuild: {
3534
pure: ['console.log'],
@@ -47,4 +46,4 @@ export default defineConfig({
4746
},
4847
},
4948
},
50-
}) as UserConfig;
49+
});

vitest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="vitest" />
22
import { fileURLToPath, URL } from 'node:url';
3-
import { mergeConfig, defineConfig, type UserConfig } from 'vitest/config';
3+
import { mergeConfig, defineConfig } from 'vitest/config';
44
import viteConfig from './vite.config';
55

66
export default mergeConfig(
@@ -17,5 +17,5 @@ export default mergeConfig(
1717
include: ['!src/main.ts', 'src/**/*.ts', 'src/**/*.vue'],
1818
},
1919
},
20-
}) as UserConfig,
20+
}),
2121
);

0 commit comments

Comments
 (0)