mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +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 }) => {
|
||||
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 = (
|
||||
await glob(['dayjs/(locale|plugin)/*.js'], {
|
||||
cwd: path.resolve(projRoot, 'node_modules'),
|
||||
|
Loading…
Reference in New Issue
Block a user