Skip to content

Commit c127955

Browse files
authored
chore: use plugin hooks filter for patch-types plugin for bundling vite (#20089)
1 parent b742b46 commit c127955

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

packages/vite/rollup.dts.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ function patchTypes(): Plugin {
113113
name: 'patch-types',
114114
resolveId: {
115115
order: 'pre',
116+
filter: {
117+
id: /^(dep-)*types\//,
118+
},
116119
handler(id) {
117120
// Dep types should be bundled
118121
if (id.startsWith('dep-types/')) {

pnpm-lock.yaml

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)