From 42d8a0e0cb2bde3bb0312dc1d779c45b3b702e58 Mon Sep 17 00:00:00 2001 From: "David R. Myers" Date: Tue, 25 Apr 2023 22:53:40 -0400 Subject: [PATCH] Update usage example --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b45c404..d22429b 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,10 @@ import { nodePolyfills } from 'vite-plugin-node-polyfills' export default defineConfig({ plugins: [ nodePolyfills({ + // To exclude specific polyfills, add them to this list. + exclude: [ + 'fs', // Excludes the polyfill for `fs` and `node:fs`. + ], // Whether to polyfill `node:` protocol imports. protocolImports: true, }),