We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1cefca commit fc173dbCopy full SHA for fc173db
src/index.ts
@@ -6,7 +6,7 @@ import { randomBytes } from 'crypto';
6
7
export default function (opts: NodePolyfillsOptions = {}) {
8
const injectPlugin = inject({
9
- include: opts.include,
+ include: opts.include === undefined ? 'node_modules/**/*.js' : undefined,
10
exclude: opts.exclude,
11
sourceMap: opts.sourceMap,
12
modules: {
0 commit comments