@compiled/react
Advanced tools
Comparing version 0.6.4-e740add2625d2bf5577c20e4849a9a1c23f58002.0 to 0.6.6
@@ -146,3 +146,5 @@ import { COMPILED_IMPORT_PATH, REACT_IMPORT_PATH, REACT_IMPORT_NAME } from './constants'; | ||
var hasNoNamespaceReactImportDeclaration = importNamespaceSpecifierCollection.length === 0; | ||
if (hasNoDefaultReactImportDeclaration && hasNoNamespaceReactImportDeclaration) { | ||
if (hasNoDefaultReactImportDeclaration && | ||
hasNoNamespaceReactImportDeclaration && | ||
importDeclarationPath.node.specifiers) { | ||
importDeclarationPath.node.specifiers.unshift(j.importDefaultSpecifier(j.identifier(REACT_IMPORT_NAME))); | ||
@@ -149,0 +151,0 @@ } |
@@ -159,3 +159,5 @@ "use strict"; | ||
var hasNoNamespaceReactImportDeclaration = importNamespaceSpecifierCollection.length === 0; | ||
if (hasNoDefaultReactImportDeclaration && hasNoNamespaceReactImportDeclaration) { | ||
if (hasNoDefaultReactImportDeclaration && | ||
hasNoNamespaceReactImportDeclaration && | ||
importDeclarationPath.node.specifiers) { | ||
importDeclarationPath.node.specifiers.unshift(j.importDefaultSpecifier(j.identifier(constants_1.REACT_IMPORT_NAME))); | ||
@@ -162,0 +164,0 @@ } |
@@ -146,3 +146,5 @@ import { COMPILED_IMPORT_PATH, REACT_IMPORT_PATH, REACT_IMPORT_NAME } from './constants'; | ||
var hasNoNamespaceReactImportDeclaration = importNamespaceSpecifierCollection.length === 0; | ||
if (hasNoDefaultReactImportDeclaration && hasNoNamespaceReactImportDeclaration) { | ||
if (hasNoDefaultReactImportDeclaration && | ||
hasNoNamespaceReactImportDeclaration && | ||
importDeclarationPath.node.specifiers) { | ||
importDeclarationPath.node.specifiers.unshift(j.importDefaultSpecifier(j.identifier(REACT_IMPORT_NAME))); | ||
@@ -149,0 +151,0 @@ } |
{ | ||
"name": "@compiled/react", | ||
"version": "0.6.4-e740add2625d2bf5577c20e4849a9a1c23f58002.0", | ||
"version": "0.6.6", | ||
"description": "Build time atomic CSS-in-JS. Baked and ready to serve.", | ||
@@ -55,3 +55,3 @@ "author": "Michael Dougall", | ||
"@testing-library/react": "^11.2.5", | ||
"@types/jscodeshift": "^0.7.2", | ||
"@types/jscodeshift": "^0.11.0", | ||
"jscodeshift": "^0.11.0", | ||
@@ -58,0 +58,0 @@ "react": "^17.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
322450
6324