You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed an issue with the lack of /*#__PURE__*/ annotations before styled calls transformed from tagged template expressions (emotion-js#2799)
* Upgrade Babel-related dependencies
* Fixed an issue with lack of PURE annotations on some styled nodes
* Add changeset
* add additional ignore line to flowconfig
* try ignoring other package in flowconfig
* Remove redundant code
* reuse named variable in one of the calls
Copy file name to clipboardexpand all lines: packages/babel-plugin/__tests__/__snapshots__/index.js.snap
+2-2
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ import _styled from "@emotion/styled/base";
71
71
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
Copy file name to clipboardexpand all lines: packages/babel-plugin/__tests__/__snapshots__/styled-requires-options.js.snap
+2-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ import _styled from "@emotion/styled/base";
12
12
13
13
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
14
14
15
-
const Foo = _styled("h1", {
15
+
const Foo = /*#__PURE__*/_styled("h1", {
16
16
target: "eoxfmb00"
17
17
})(process.env.NODE_ENV === "production" ? {
18
18
name: "3sn2xs",
@@ -37,6 +37,7 @@ import _styled from "@emotion/styled/base";
37
37
38
38
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
Copy file name to clipboardexpand all lines: packages/babel-plugin/__tests__/__snapshots__/styled.js.snap
+25-24
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ import _styled from "@emotion/styled/base";
59
59
60
60
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
@@ -125,6 +125,7 @@ import _styled from "@emotion/styled/base";
125
125
126
126
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
127
127
128
+
/*#__PURE__*/
128
129
_styled("div", {
129
130
target: "e1jqiiye0"
130
131
})(process.env.NODE_ENV === "production" ? {
@@ -172,7 +173,7 @@ import _styled from "@emotion/styled/base";
172
173
173
174
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
let OneLastComponent = _styled("div", process.env.NODE_ENV === "production" ? {
213
+
let OneLastComponent = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
213
214
target: "e1i93zq70"
214
215
} : {
215
216
target: "e1i93zq70",
@@ -251,7 +252,7 @@ styled('button', cfg)({})
251
252
252
253
import _styled from "@emotion/styled/base";
253
254
254
-
function _extends() {_extends=Object.assign||function (target) { for (var i =1; i<arguments.length; i++) { var source =arguments[i]; for (var key insource) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] =source[key]; } } } returntarget; }; return_extends.apply(this, arguments); }
255
+
function _extends() {_extends=Object.assign?Object.assign.bind() :function (target) { for (var i =1; i<arguments.length; i++) { var source =arguments[i]; for (var key insource) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] =source[key]; } } } returntarget; }; return_extends.apply(this, arguments); }
255
256
256
257
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
257
258
@@ -312,7 +313,7 @@ let Avatar = styled.img\`
312
313
313
314
import _styled from "@emotion/styled/base";
314
315
315
-
let Avatar = _styled("img", process.env.NODE_ENV === "production" ? {
316
+
let Avatar = /*#__PURE__*/_styled("img", process.env.NODE_ENV === "production" ? {
316
317
target: "e9o8e9e0"
317
318
} : {
318
319
target: "e9o8e9e0",
@@ -340,7 +341,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
340
341
/* eslint-disable react/jsx-pascal-case */
341
342
import {jsx} from '@emotion/react';
342
343
343
-
let SomeComp = _styled("div", process.env.NODE_ENV === "production" ? {
344
+
let SomeComp = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
344
345
target: "e2dh5500"
345
346
} : {
346
347
target: "e2dh5500",
@@ -372,7 +373,7 @@ import _styled from "@emotion/styled/base";
@@ -566,7 +567,7 @@ import _styled from "@emotion/styled/base";
566
567
567
568
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
@@ -656,7 +657,7 @@ import _styled from "@emotion/styled/base";
656
657
657
658
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
@@ -812,7 +813,7 @@ import _styled from "@emotion/styled/base";
812
813
813
814
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
Copy file name to clipboardexpand all lines: packages/babel-plugin/__tests__/disable-source-map/__snapshots__/index.js.snap
+1-1
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ import _styled from "@emotion/styled/base";
33
33
34
34
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
35
35
36
-
let Comp = _styled("div", process.env.NODE_ENV === "production" ? {
36
+
let Comp = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
85
85
86
86
import {nonDefaultStyled} from 'package-one';
87
-
let SomeComp = nonDefaultStyled("div", process.env.NODE_ENV === "production" ? {
87
+
let SomeComp = /*#__PURE__*/nonDefaultStyled("div", process.env.NODE_ENV === "production" ? {
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
112
112
113
113
import {nonDefaultStyledassomeAlias} from 'package-one';
114
-
let SomeComp = someAlias("div", process.env.NODE_ENV === "production" ? {
114
+
let SomeComp = /*#__PURE__*/someAlias("div", process.env.NODE_ENV === "production" ? {
115
115
target: "erjjkeh0"
116
116
} : {
117
117
target: "erjjkeh0",
@@ -139,7 +139,7 @@ import { something as _styled } from "package-four/base";
139
139
140
140
function _EMOTION_STRINGIFIED_CSS_ERROR__() {return"You have tried to stringify object returned from \`css\` function. It isn't supposed to be used directly (e.g. as value of the \`className\` prop), but rather handed to emotion so it can handle it (e.g. as value of \`css\` prop)."; }
141
141
142
-
let SomeComp = _styled("div", process.env.NODE_ENV === "production" ? {
142
+
let SomeComp = /*#__PURE__*/_styled("div", process.env.NODE_ENV === "production" ? {
0 commit comments