Skip to content

Commit fc173db

Browse files
committed
fix(): only scan node_modules js files by default
1 parent d1cefca commit fc173db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { randomBytes } from 'crypto';
66

77
export default function (opts: NodePolyfillsOptions = {}) {
88
const injectPlugin = inject({
9-
include: opts.include,
9+
include: opts.include === undefined ? 'node_modules/**/*.js' : undefined,
1010
exclude: opts.exclude,
1111
sourceMap: opts.sourceMap,
1212
modules: {

0 commit comments

Comments
 (0)