mirror of
https://github.com/tcgdex/next-pre-css.git
synced 2025-04-22 10:52:14 +00:00
fix: NextJS 12 Error (#1)
This commit is contained in:
parent
8912ae3616
commit
f5ed7ce221
3
index.js
3
index.js
@ -27,6 +27,7 @@ const ammendOneOfRules = config => (a, c) => {
|
|||||||
&& c.test.source
|
&& c.test.source
|
||||||
|
|
||||||
const matchesRegExpIssuer = 'issuer' in c
|
const matchesRegExpIssuer = 'issuer' in c
|
||||||
|
&& typeof c.issuer !== 'undefined'
|
||||||
&& c.issuer instanceof RegExp
|
&& c.issuer instanceof RegExp
|
||||||
&& c.issuer.source
|
&& c.issuer.source
|
||||||
|
|
||||||
@ -43,12 +44,14 @@ const ammendOneOfRules = config => (a, c) => {
|
|||||||
|| (() => false))
|
|| (() => false))
|
||||||
|
|
||||||
const issuerAccepts = ('issuer' in c
|
const issuerAccepts = ('issuer' in c
|
||||||
|
&& typeof c.issuer !== 'undefined'
|
||||||
&& 'and' in c.issuer
|
&& 'and' in c.issuer
|
||||||
&& Array.isArray(c.issuer.and)
|
&& Array.isArray(c.issuer.and)
|
||||||
&& matchArray(c.issuer.and)
|
&& matchArray(c.issuer.and)
|
||||||
|| (() => false))
|
|| (() => false))
|
||||||
|
|
||||||
const issuerAvoids = ('issuer' in c
|
const issuerAvoids = ('issuer' in c
|
||||||
|
&& typeof c.issuer !== 'undefined'
|
||||||
&& 'not' in c.issuer
|
&& 'not' in c.issuer
|
||||||
&& Array.isArray(c.issuer.not)
|
&& Array.isArray(c.issuer.not)
|
||||||
&& matchArray(c.issuer.not)
|
&& matchArray(c.issuer.not)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user