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,4 +1,3 @@
import { get } from 'lodash-es';
import { existsSync, readFileSync } from 'fs';
import { fileURLToPath, pathToFileURL } from 'url';
import { join, dirname, isAbsolute } from 'path';
@@ -74,7 +73,7 @@ export function getVantConfig() {
function getSrcDir() {
const vantConfig = getVantConfig();
const srcDir = get(vantConfig, 'build.srcDir');
const srcDir = vantConfig.build?.srcDir;
if (srcDir) {
if (isAbsolute(srcDir)) {