@vanilla-extract/babel-plugin-debug-ids
Advanced tools
Comparing version 0.0.0-vite-plugin-new-20240115025310 to 0.0.0-vite-plugin-new-20240115050437
@@ -93,4 +93,5 @@ 'use strict'; | ||
else if (firstRelevantParentPath.parent.declarations.length === 1) { | ||
var _firstRelevantParentP; | ||
const [themeDeclarator] = firstRelevantParentPath.parent.declarations; | ||
const nextSibling = firstRelevantParentPath.parentPath?.getNextSibling().node; | ||
const nextSibling = (_firstRelevantParentP = firstRelevantParentPath.parentPath) === null || _firstRelevantParentP === void 0 ? void 0 : _firstRelevantParentP.getNextSibling().node; | ||
if (core.types.isCallExpression(themeDeclarator.init) && core.types.isCallExpression(themeDeclarator.init.arguments[0]) && core.types.isIdentifier(themeDeclarator.init.arguments[0].callee, { | ||
@@ -191,3 +192,3 @@ name: 'createTheme' | ||
} = debuggableFunctionConfig[usedExport]; | ||
if (node.arguments.length < maxParams && !hasDebugId?.(node)) { | ||
if (node.arguments.length < maxParams && !(hasDebugId !== null && hasDebugId !== void 0 && hasDebugId(node))) { | ||
const debugIdent = getDebugId(path); | ||
@@ -194,0 +195,0 @@ if (debugIdent) { |
@@ -93,4 +93,5 @@ 'use strict'; | ||
else if (firstRelevantParentPath.parent.declarations.length === 1) { | ||
var _firstRelevantParentP; | ||
const [themeDeclarator] = firstRelevantParentPath.parent.declarations; | ||
const nextSibling = firstRelevantParentPath.parentPath?.getNextSibling().node; | ||
const nextSibling = (_firstRelevantParentP = firstRelevantParentPath.parentPath) === null || _firstRelevantParentP === void 0 ? void 0 : _firstRelevantParentP.getNextSibling().node; | ||
if (core.types.isCallExpression(themeDeclarator.init) && core.types.isCallExpression(themeDeclarator.init.arguments[0]) && core.types.isIdentifier(themeDeclarator.init.arguments[0].callee, { | ||
@@ -191,3 +192,3 @@ name: 'createTheme' | ||
} = debuggableFunctionConfig[usedExport]; | ||
if (node.arguments.length < maxParams && !hasDebugId?.(node)) { | ||
if (node.arguments.length < maxParams && !(hasDebugId !== null && hasDebugId !== void 0 && hasDebugId(node))) { | ||
const debugIdent = getDebugId(path); | ||
@@ -194,0 +195,0 @@ if (debugIdent) { |
@@ -89,4 +89,5 @@ import { types } from '@babel/core'; | ||
else if (firstRelevantParentPath.parent.declarations.length === 1) { | ||
var _firstRelevantParentP; | ||
const [themeDeclarator] = firstRelevantParentPath.parent.declarations; | ||
const nextSibling = firstRelevantParentPath.parentPath?.getNextSibling().node; | ||
const nextSibling = (_firstRelevantParentP = firstRelevantParentPath.parentPath) === null || _firstRelevantParentP === void 0 ? void 0 : _firstRelevantParentP.getNextSibling().node; | ||
if (types.isCallExpression(themeDeclarator.init) && types.isCallExpression(themeDeclarator.init.arguments[0]) && types.isIdentifier(themeDeclarator.init.arguments[0].callee, { | ||
@@ -187,3 +188,3 @@ name: 'createTheme' | ||
} = debuggableFunctionConfig[usedExport]; | ||
if (node.arguments.length < maxParams && !hasDebugId?.(node)) { | ||
if (node.arguments.length < maxParams && !(hasDebugId !== null && hasDebugId !== void 0 && hasDebugId(node))) { | ||
const debugIdent = getDebugId(path); | ||
@@ -190,0 +191,0 @@ if (debugIdent) { |
{ | ||
"name": "@vanilla-extract/babel-plugin-debug-ids", | ||
"version": "0.0.0-vite-plugin-new-20240115025310", | ||
"version": "0.0.0-vite-plugin-new-20240115050437", | ||
"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
28714
608