We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16d6c28 commit 1bc54c1Copy full SHA for 1bc54c1
source/index.ts
@@ -130,8 +130,8 @@ function nodeExternals(options: ExternalsOptions = {}): Plugin {
130
let include: RegExp[],
131
exclude: RegExp[]
132
133
- const isIncluded = (id: string) => include.length === 0 || include.some(rx => rx.test(id)),
134
- isExcluded = (id: string) => exclude.length > 0 && exclude.some(rx => rx.test(id))
+ const isIncluded = (id: string) => include.some(rx => rx.test(id)),
+ isExcluded = (id: string) => exclude.some(rx => rx.test(id))
135
136
return {
137
name: 'node-externals',
0 commit comments