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 841d4ef commit 284696bCopy full SHA for 284696b
packages/core/src/htmlPlugin.ts
@@ -338,6 +338,7 @@ function createRewire(
338
return template
339
}
340
const isApiUrl = proxyUrlKeys.some((item) =>
341
+ item.startsWith('^') && new RegExp(item).test(pathname) ||
342
pathname.startsWith(path.resolve(baseUrl, item)),
343
)
344
return isApiUrl ? excludeBaseUrl : template
0 commit comments