diff --git a/package.json b/package.json index 554f064217..ab88afa71f 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,6 @@ "dependencies": { "@babel/runtime": "^7.22.6", "@popperjs/core": "^2.11.8", - "@types/lodash-es": "^4.17.12", "@types/sortablejs": "^1.15.1", "@types/tinycolor2": "^1.4.3", "@types/validator": "^13.7.17", @@ -119,6 +118,7 @@ "@rollup/plugin-url": "^7.0.0", "@testing-library/dom": "^8.20.1", "@types/babel__traverse": "~7.20.6", + "@types/lodash-es": "^4.17.12", "@types/node": "22.5.1", "@types/raf": "^3.4.0", "@typescript-eslint/eslint-plugin": "^4.33.0", diff --git a/script/rollup.config.js b/script/rollup.config.js index f1cc13e643..203e07bfac 100644 --- a/script/rollup.config.js +++ b/script/rollup.config.js @@ -22,7 +22,7 @@ import pkg from '../package.json'; const name = 'tdesign'; const esExternalDeps = Object.keys(pkg.dependencies || {}); -const externalDeps = esExternalDeps.concat([/lodash/, /@babel\/runtime/]); +const externalDeps = esExternalDeps.concat([/@babel\/runtime/]); const externalPeerDeps = Object.keys(pkg.peerDependencies || {}); const banner = `/** * ${name} v${pkg.version} @@ -233,7 +233,7 @@ const umdConfig = { banner, format: 'umd', exports: 'named', - globals: { vue: 'Vue', lodash: '_' }, + globals: { vue: 'Vue' }, sourcemap: true, file: `dist/${name}.js`, }, @@ -253,7 +253,7 @@ const umdMinConfig = { banner, format: 'umd', exports: 'named', - globals: { vue: 'Vue', lodash: '_' }, + globals: { vue: 'Vue' }, sourcemap: true, file: `dist/${name}.min.js`, }, diff --git a/src/_common b/src/_common index 58ffcb16f6..e23ad04213 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit 58ffcb16f6c310b678604a5b3309c280df669fad +Subproject commit e23ad04213d64f3b7161cc4cc758f8ca03d06ae9