Skip to content

Commit

Permalink
✨ Add log when value has already wrapped in rfs()
Browse files Browse the repository at this point in the history
  • Loading branch information
kghugo committed Aug 4, 2020
1 parent 10848a5 commit bc5ab2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utilities/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const log = (msg, msgType) => {
console.log(chalk.green(msg))
break

case 'notice':
console.log(chalk.cyan(msg))
break

case 'error':
console.log(chalk.red(msg))
break
Expand All @@ -25,6 +29,7 @@ const log = (msg, msgType) => {

const shouldBeTransformed = (decl, options) => {
if (hasWrappedInRFS(decl)) {
log(`${decl.parent.selector}{ ${decl.prop}: ${decl.value} } has already been wrapped in rfs()`, 'notice')
return false
}

Expand Down

0 comments on commit bc5ab2a

Please sign in to comment.