chore(@vant/cli): remove lodash-es from deps (#10206)

This commit is contained in:
neverland
2022-01-17 15:43:54 +08:00
committed by GitHub
parent 2892f44af7
commit d4aebef89c
8 changed files with 12 additions and 38 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import fse from 'fs-extra';
import { get } from 'lodash-es';
import { sep, join } from 'path';
import { SRC_DIR, getVantConfig } from './constant.js';
import type { InlineConfig } from 'vite';
@@ -117,7 +116,7 @@ export function smartOutputFile(filePath: string, content: string) {
export function mergeCustomViteConfig(config: InlineConfig) {
const vantConfig = getVantConfig();
const configureVite = get(vantConfig, 'build.configureVite');
const configureVite = vantConfig.build?.configureVite;
if (configureVite) {
return configureVite(config);