Skip to content

Commit 42d8a0e

Browse files
committed
Update usage example
1 parent 120e107 commit 42d8a0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills'
3535
export default defineConfig({
3636
plugins: [
3737
nodePolyfills({
38+
// To exclude specific polyfills, add them to this list.
39+
exclude: [
40+
'fs', // Excludes the polyfill for `fs` and `node:fs`.
41+
],
3842
// Whether to polyfill `node:` protocol imports.
3943
protocolImports: true,
4044
}),

0 commit comments

Comments
 (0)