diff --git a/play/vite.config.ts b/play/vite.config.ts index c144d5da0e..942a19629d 100644 --- a/play/vite.config.ts +++ b/play/vite.config.ts @@ -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'),