We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3e64f1 commit 5f46eb4Copy full SHA for 5f46eb4
1 file changed
src/index.ts
@@ -245,7 +245,7 @@ export const nodePolyfills = (options: PolyfillOptions = {}): Plugin[] => {
245
} else {
246
// hook filters are only supported in Vite 6.3.0+
247
(transform as any).filter = {
248
- code: new RegExp(globalShimPaths.map((re) => `\b${re}\b`).join('|')),
+ code: new RegExp(Object.keys(shimsToInject).join('|')),
249
}
250
251
0 commit comments