babel-plugin-emotion-rename
Advanced tools
Comparing version 1.0.0-beta.18 to 1.0.0-beta.19
@@ -14,3 +14,3 @@ "use strict"; | ||
function getStyled(path) { | ||
if (!path.node.source.value === "react-emotion") { | ||
if (path.node.source.value !== "react-emotion") { | ||
return { | ||
@@ -17,0 +17,0 @@ hasStyled: [], |
{ | ||
"name": "babel-plugin-emotion-rename", | ||
"version": "1.0.0-beta.18", | ||
"version": "1.0.0-beta.19", | ||
"description": "Babel plugin to rename old Emotion 9 import to new Emotion 10+ import", | ||
"main": "lib/index", | ||
"scripts": { | ||
"build": "babel --config-file=./babel-main.config.js src/. -d lib/. --ignore=spec.js", | ||
"build": "babel --extensions=.ts --config-file=./babel-main.config.js src/. -d lib/. --ignore=spec.js", | ||
"test:babel": "node src/index.spec.js", | ||
@@ -25,12 +25,15 @@ "tmp": "babel --config-file=./babel-example.config.js examples/src/. -d examples/out/.", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/node": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"@babel/traverse": "^7.0.0", | ||
"@babel/cli": "^7.19.3", | ||
"@babel/core": "^7.20.5", | ||
"@babel/node": "^7.20.5", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@babel/register": "^7.18.9", | ||
"@babel/traverse": "^7.20.5", | ||
"@typescript-eslint/parser": "^5.45.0", | ||
"assert-simple-tap": "^3.0.0", | ||
"eslint": "^8.28.0", | ||
"npm-run-all": "^4.0.2", | ||
"prettier": "^2.0.1" | ||
"prettier": "^2.0.1", | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -37,0 +40,0 @@ "files": [ |
@@ -8,2 +8,4 @@ # babel-plugin-emotion-rename [![npm][npm-image]][npm-url] | ||
[Demo repository with Webpack+Babel+React+Emotion11](https://github.com/antonybudianto/demo-emotion) | ||
## How it works | ||
@@ -19,2 +21,3 @@ | ||
- Some things may not be working, please checkout with caution! | ||
- If you're using SSR, It's very recommended to also implement `@emotion/css` SSR integration as well for smoother migration | ||
@@ -21,0 +24,0 @@ ## Install |
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
43
15043
13
5
248