Skip to content

Commit 5f46eb4

Browse files
committed
fix: incorrect filter
1 parent d3e64f1 commit 5f46eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export const nodePolyfills = (options: PolyfillOptions = {}): Plugin[] => {
245245
} else {
246246
// hook filters are only supported in Vite 6.3.0+
247247
(transform as any).filter = {
248-
code: new RegExp(globalShimPaths.map((re) => `\b${re}\b`).join('|')),
248+
code: new RegExp(Object.keys(shimsToInject).join('|')),
249249
}
250250
}
251251

0 commit comments

Comments
 (0)