test
This commit is contained in:
parent
3b3f6c903a
commit
7cb6217258
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue