Skip to content

Commit

Permalink
Fix "Entry module cannot be external" error
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Jan 30, 2024
1 parent 16d6c28 commit 1bc54c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ function nodeExternals(options: ExternalsOptions = {}): Plugin {
let include: RegExp[],
exclude: RegExp[]

const isIncluded = (id: string) => include.length === 0 || include.some(rx => rx.test(id)),
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))

return {
name: 'node-externals',
Expand Down

0 comments on commit 1bc54c1

Please sign in to comment.