babel-plugin-emotion-rename
Advanced tools
Comparing version 1.0.0-beta.25 to 1.0.0-beta.26
@@ -148,2 +148,3 @@ "use strict"; | ||
if (!hasEmotionImport) { | ||
path.stop(); | ||
return; | ||
@@ -168,2 +169,3 @@ } | ||
if (!hasEmotionImport) { | ||
path.stop(); | ||
return; | ||
@@ -202,2 +204,3 @@ } | ||
if (!hasEmotionImport) { | ||
path.stop(); | ||
return; | ||
@@ -324,2 +327,9 @@ } | ||
if (!hasEmotionImport) { | ||
/** | ||
* Prevent late require('emotion') call being stopped before marked as hasEmotionImport. | ||
* We cannot stop until the last require(...) call. | ||
*/ | ||
if (!isRequire) { | ||
path.stop(); | ||
} | ||
return; | ||
@@ -326,0 +336,0 @@ } |
{ | ||
"name": "babel-plugin-emotion-rename", | ||
"version": "1.0.0-beta.25", | ||
"version": "1.0.0-beta.26", | ||
"description": "Babel plugin to rename old Emotion 9 import to new Emotion 10+ import", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
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
26929
419