@vanilla-extract/babel-plugin-debug-ids
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -31,3 +31,9 @@ 'use strict'; | ||
createVar: { | ||
maxParams: 1 | ||
maxParams: 2, | ||
hasDebugId: ({ | ||
arguments: args | ||
}) => { | ||
const previousArg = args[args.length - 1]; | ||
return core.types.isStringLiteral(previousArg) || core.types.isTemplateLiteral(previousArg); | ||
} | ||
}, | ||
@@ -34,0 +40,0 @@ recipe: { |
@@ -31,3 +31,9 @@ 'use strict'; | ||
createVar: { | ||
maxParams: 1 | ||
maxParams: 2, | ||
hasDebugId: ({ | ||
arguments: args | ||
}) => { | ||
const previousArg = args[args.length - 1]; | ||
return core.types.isStringLiteral(previousArg) || core.types.isTemplateLiteral(previousArg); | ||
} | ||
}, | ||
@@ -34,0 +40,0 @@ recipe: { |
@@ -27,3 +27,9 @@ import { types } from '@babel/core'; | ||
createVar: { | ||
maxParams: 1 | ||
maxParams: 2, | ||
hasDebugId: ({ | ||
arguments: args | ||
}) => { | ||
const previousArg = args[args.length - 1]; | ||
return types.isStringLiteral(previousArg) || types.isTemplateLiteral(previousArg); | ||
} | ||
}, | ||
@@ -30,0 +36,0 @@ recipe: { |
{ | ||
"name": "@vanilla-extract/babel-plugin-debug-ids", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Zero-runtime Stylesheets-in-TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "dist/vanilla-extract-babel-plugin-debug-ids.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29535
635