[PCCompatCheck] Better module.exports ignoring (accept no value inline)
This commit is contained in:
parent
2db8ae01c4
commit
da87247f5d
|
@ -57,7 +57,7 @@ for (const jsFile of glob.sync(`${cloneDir}/**/*.js`).concat(glob.sync(`${cloneD
|
||||||
imp = imp.trim().split(':')[0];
|
imp = imp.trim().split(':')[0];
|
||||||
|
|
||||||
const searchRegex1 = new RegExp(`^export.*${imp}.*$`, 'gm');
|
const searchRegex1 = new RegExp(`^export.*${imp}.*$`, 'gm');
|
||||||
const searchRegex2 = new RegExp(`^ *${imp}: `, 'gm');
|
const searchRegex2 = new RegExp(`^ *${imp}[:,]`, 'gm');
|
||||||
|
|
||||||
const searchMatch = aliasJS.match(searchRegex1) || aliasJS.match(searchRegex2);
|
const searchMatch = aliasJS.match(searchRegex1) || aliasJS.match(searchRegex2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue