diff --git a/src/babel-loader-regex-builder.ts b/src/babel-loader-regex-builder.ts index 529bdbd..9f06d87 100644 --- a/src/babel-loader-regex-builder.ts +++ b/src/babel-loader-regex-builder.ts @@ -1,3 +1,3 @@ export function getBabelLoaderIgnoreRegex(dependencies: string[]) { - return `[\\/]node_modules[\\/](?!(${dependencies.join('|')}))` + return `[\\/]node_modules[\\/](?!(${dependencies.join('|')}))[\\/]` }