mirror of
https://github.com/youzan/vant.git
synced 2026-04-03 02:06:24 +08:00
chore(@vant/cli): remove lodash-es from deps (#10206)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { get } from 'lodash-es';
|
||||
import { join } from 'path';
|
||||
import {
|
||||
pascalize,
|
||||
@@ -72,8 +71,8 @@ export function genPackageEntry({
|
||||
const names = getComponents();
|
||||
const vantConfig = getVantConfig();
|
||||
|
||||
const namedExport = get(vantConfig, 'build.namedExport', false);
|
||||
const skipInstall = get(vantConfig, 'build.skipInstall', []).map(pascalize);
|
||||
const namedExport = vantConfig.build?.namedExport || false;
|
||||
const skipInstall = (vantConfig.build?.skipInstall || []).map(pascalize);
|
||||
|
||||
const version = process.env.PACKAGE_VERSION || getPackageJson().version;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import markdownVetur from '@vant/markdown-vetur';
|
||||
import { get } from 'lodash-es';
|
||||
import {
|
||||
SRC_DIR,
|
||||
VETUR_DIR,
|
||||
@@ -11,7 +10,7 @@ import {
|
||||
export function genVeturConfig() {
|
||||
const pkgJson = getPackageJson();
|
||||
const vantConfig = getVantConfig();
|
||||
const options = get(vantConfig, 'build.vetur');
|
||||
const options = vantConfig.build?.vetur;
|
||||
|
||||
if (options) {
|
||||
markdownVetur.parseAndWrite({
|
||||
|
||||
Reference in New Issue
Block a user