mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
fix(play): vite exclude dts deps (#7089)
This commit is contained in:
parent
1796a63caa
commit
05d0eb8243
@ -31,8 +31,8 @@ const esbuildPlugin = () => ({
|
|||||||
|
|
||||||
export default defineConfig(async ({ mode }) => {
|
export default defineConfig(async ({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd(), '')
|
const env = loadEnv(mode, process.cwd(), '')
|
||||||
const { dependencies } = getPackageDependencies(epPackage)
|
let { dependencies } = getPackageDependencies(epPackage)
|
||||||
|
dependencies = dependencies.filter((dep) => !dep.startsWith('@types/')) // exclude dts deps
|
||||||
const optimizeDeps = (
|
const optimizeDeps = (
|
||||||
await glob(['dayjs/(locale|plugin)/*.js'], {
|
await glob(['dayjs/(locale|plugin)/*.js'], {
|
||||||
cwd: path.resolve(projRoot, 'node_modules'),
|
cwd: path.resolve(projRoot, 'node_modules'),
|
||||||
|
Loading…
Reference in New Issue
Block a user