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.
lastIndex
1 parent fb50689 commit 1abc97bCopy full SHA for 1abc97b
src/features/external.ts
@@ -22,7 +22,11 @@ export function ExternalPlugin(options: ResolvedOptions): Plugin {
22
const noExternalPatterns = toArray(noExternal)
23
if (
24
noExternalPatterns.some((pattern) => {
25
- return pattern instanceof RegExp ? pattern.test(id) : id === pattern
+ if (pattern instanceof RegExp) {
26
+ pattern.lastIndex = 0
27
+ return pattern.test(id)
28
+ }
29
+ return id === pattern
30
})
31
)
32
return
0 commit comments