Skip to content

Commit 8601746

Browse files
committed
Invoke the rollup plugin function
1 parent cccdd5e commit 8601746

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ import type { Plugin } from 'vite'
66
export const nodePolyfills = (_options = {}): Plugin => {
77
return {
88
name: 'vite-plugin-node-polyfills',
9+
// @ts-expect-error The rollupNodePolyFill() function does not match the Vite expected type signature.
910
config: (_config, _env) => {
1011
return {
1112
build: {
1213
rollupOptions: {
1314
plugins: [
14-
rollupNodePolyFill,
15+
rollupNodePolyFill(),
1516
],
1617
},
1718
},

0 commit comments

Comments
 (0)