@emotion/babel-plugin
Advanced tools
Comparing version 11.0.0 to 11.1.2
# @emotion/babel-plugin | ||
## 11.1.2 | ||
### Patch Changes | ||
- [`de378ab8`](https://github.com/emotion-js/emotion/commit/de378ab8693c74be5714c6c12ccc191ed2d7ac1a) [#2147](https://github.com/emotion-js/emotion/pull/2147) Thanks [@macalinao](https://github.com/macalinao)! - Fixed an issue with template strings minifier crashing on two consecutive interpolations without any meaningful string in between them. | ||
- Updated dependencies [[`ee6a673f`](https://github.com/emotion-js/emotion/commit/ee6a673f74e934bf738d5346ddfc7982caa23827)]: | ||
- @emotion/memoize@0.7.5 | ||
## 11.0.0 | ||
@@ -4,0 +13,0 @@ |
@@ -402,6 +402,6 @@ 'use strict'; | ||
if (preMatch) { | ||
if (!preMatch && i === 0) { | ||
strings.push(t.stringLiteral('')); | ||
} else { | ||
strings.push(t.stringLiteral(preMatch)); | ||
} else if (i === 0) { | ||
strings.push(t.stringLiteral('')); | ||
} | ||
@@ -408,0 +408,0 @@ |
@@ -188,3 +188,3 @@ "use strict"; | ||
var value = _ref.value, p1 = _ref.p1, index = _ref.index, preMatch = str.substring(cursor, index); | ||
cursor = cursor + preMatch.length + value.length, preMatch ? strings.push(t.stringLiteral(preMatch)) : 0 === i && strings.push(t.stringLiteral("")), | ||
cursor = cursor + preMatch.length + value.length, preMatch || 0 !== i ? strings.push(t.stringLiteral(preMatch)) : strings.push(t.stringLiteral("")), | ||
finalExpressions.push(expressions[p1]), i === matches.length - 1 && strings.push(t.stringLiteral(str.substring(index + value.length))); | ||
@@ -191,0 +191,0 @@ })), interleave(strings, finalExpressions).filter((function(node) { |
@@ -386,6 +386,6 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
if (preMatch) { | ||
if (!preMatch && i === 0) { | ||
strings.push(t.stringLiteral('')); | ||
} else { | ||
strings.push(t.stringLiteral(preMatch)); | ||
} else if (i === 0) { | ||
strings.push(t.stringLiteral('')); | ||
} | ||
@@ -392,0 +392,0 @@ |
{ | ||
"name": "@emotion/babel-plugin", | ||
"version": "11.0.0", | ||
"version": "11.1.2", | ||
"description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.", | ||
@@ -20,3 +20,3 @@ "main": "dist/emotion-babel-plugin.cjs.js", | ||
"@emotion/hash": "^0.8.0", | ||
"@emotion/memoize": "^0.7.4", | ||
"@emotion/memoize": "^0.7.5", | ||
"@emotion/serialize": "^1.0.0", | ||
@@ -23,0 +23,0 @@ "babel-plugin-macros": "^2.6.1", |
@@ -109,6 +109,7 @@ // @flow | ||
cursor = cursor + preMatch.length + value.length | ||
if (preMatch) { | ||
if (!preMatch && i === 0) { | ||
strings.push(t.stringLiteral('')) | ||
} else { | ||
strings.push(t.stringLiteral(preMatch)) | ||
} else if (i === 0) { | ||
strings.push(t.stringLiteral('')) | ||
} | ||
@@ -115,0 +116,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
201208
0
Updated@emotion/memoize@^0.7.5