Pre Merge pull request !3 from piyongcai/main

This commit is contained in:
piyongcai 2022-05-13 09:16:40 +00:00 committed by Gitee
commit 276c9c81f2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ const vendorLibs: { match: string[]; output: string }[] = [
// @ts-ignore
export const configManualChunk: GetManualChunk = (id: string) => {
if (/[\\/]node_modules[\\/]/.test(id)) {
const matchItem = vendorLibs.find((item) => {
const matchItem = vendorLibs.find((item) => { // test
const reg = new RegExp(`[\\/]node_modules[\\/]_?(${item.match.join('|')})(.*)`, 'ig');
return reg.test(id);
});