Unverified Commit 01524ef2 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Revert swc css bump temporarily (#34440)

This reverts the below two swc crates bumps to unblock testing changes while an issue with `styled-jsx` interpolation is investigated, we can reland after that issue is addressed. 

Reverts https://github.com/vercel/next.js/pull/34408
Reverts https://github.com/vercel/next.js/pull/34355

x-ref: [slack thread](https://vercel.slack.com/archives/C02HY34AKME/p1645032079994029)
parent 8a55612c
This diff is collapsed.
...@@ -16,14 +16,14 @@ pathdiff = "0.2.0" ...@@ -16,14 +16,14 @@ pathdiff = "0.2.0"
serde = "1" serde = "1"
serde_json = "1" serde_json = "1"
styled_components = "0.14.0" styled_components = "0.14.0"
swc = "0.126.2" swc = "0.121.7"
swc_atoms = "0.2.7" swc_atoms = "0.2.7"
swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] } swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] }
swc_css = "0.85.0" swc_css = "0.46.0"
swc_ecma_loader = { version = "0.28.0", features = ["node", "lru"] } swc_ecma_loader = { version = "0.28.0", features = ["node", "lru"] }
swc_ecmascript = { version = "0.114.2", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] } swc_ecmascript = { version = "0.112.6", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_node_base = "0.5.1" swc_node_base = "0.5.1"
swc_stylis = "0.81.0" swc_stylis = "0.43.0"
tracing = {version = "0.1.28", features = ["release_max_level_off"]} tracing = {version = "0.1.28", features = ["release_max_level_off"]}
regex = "1.5" regex = "1.5"
......
...@@ -21,7 +21,7 @@ use tracing::{debug, trace}; ...@@ -21,7 +21,7 @@ use tracing::{debug, trace};
use super::{hash_string, string_literal_expr, LocalStyle}; use super::{hash_string, string_literal_expr, LocalStyle};
pub fn transform_css( pub fn transform_css(
_cm: Arc<SourceMap>, cm: Arc<SourceMap>,
style_info: &LocalStyle, style_info: &LocalStyle,
is_global: bool, is_global: bool,
class_name: &Option<String>, class_name: &Option<String>,
...@@ -33,6 +33,7 @@ pub fn transform_css( ...@@ -33,6 +33,7 @@ pub fn transform_css(
style_info.css_span.lo, style_info.css_span.lo,
style_info.css_span.hi, style_info.css_span.hi,
ParserConfig { ParserConfig {
parse_values: false,
allow_wrong_line_comments: true, allow_wrong_line_comments: true,
}, },
// We ignore errors because we inject placeholders for expressions which is // We ignore errors because we inject placeholders for expressions which is
...@@ -61,6 +62,7 @@ pub fn transform_css( ...@@ -61,6 +62,7 @@ pub fn transform_css(
}; };
// ? Do we need to support optionally prefixing? // ? Do we need to support optionally prefixing?
ss.visit_mut_with(&mut prefixer()); ss.visit_mut_with(&mut prefixer());
ss.visit_mut_with(&mut CssPlaceholderFixer { cm });
ss.visit_mut_with(&mut Namespacer { ss.visit_mut_with(&mut Namespacer {
class_name: match class_name { class_name: match class_name {
Some(s) => s.clone(), Some(s) => s.clone(),
...@@ -129,6 +131,48 @@ fn read_number(s: &str) -> (usize, usize) { ...@@ -129,6 +131,48 @@ fn read_number(s: &str) -> (usize, usize) {
unreachable!("read_number(`{}`) is invalid because it is empty", s) unreachable!("read_number(`{}`) is invalid because it is empty", s)
} }
/// This fixes invalid css which is created from interpolated expressions.
///
/// `__styled-jsx-placeholder-` is handled at here.
struct CssPlaceholderFixer {
cm: Arc<SourceMap>,
}
impl VisitMut for CssPlaceholderFixer {
fn visit_mut_media_query(&mut self, q: &mut MediaQuery) {
q.visit_mut_children_with(self);
match q {
MediaQuery::Ident(q) => {
if !q.raw.starts_with("__styled-jsx-placeholder-") {
return;
}
// We need to support both of @media ($breakPoint) {} and @media $queryString {}
// This is complex because @media (__styled-jsx-placeholder-0__) {} is valid
// while @media __styled-jsx-placeholder-0__ {} is not
//
// So we check original source code to determine if we should inject
// parenthesis.
// TODO(kdy1): Avoid allocation.
// To remove allocation, we should patch swc_common to provide a way to get
// source code without allocation.
//
//
// We need
//
// fn with_source_code (self: &mut Self, f: impl FnOnce(&str) -> Ret) -> _ {}
if let Ok(source) = self.cm.span_to_snippet(q.span) {
if source.starts_with('(') {
q.raw = format!("({})", &q.value).into();
}
}
}
_ => {}
}
}
}
struct Namespacer { struct Namespacer {
class_name: String, class_name: String,
is_global: bool, is_global: bool,
...@@ -185,7 +229,9 @@ impl VisitMut for Namespacer { ...@@ -185,7 +229,9 @@ impl VisitMut for Namespacer {
} }
ComplexSelectorChildren::Combinator(v) => match v.value { ComplexSelectorChildren::Combinator(v) => match v.value {
CombinatorValue::Descendant => {} CombinatorValue::Descendant => {}
_ => { CombinatorValue::NextSibling
| CombinatorValue::Child
| CombinatorValue::LaterSibling => {
combinator = Some(v.clone()); combinator = Some(v.clone());
new_selectors.push(sel); new_selectors.push(sel);
...@@ -205,22 +251,23 @@ impl Namespacer { ...@@ -205,22 +251,23 @@ impl Namespacer {
) -> Result<Vec<ComplexSelectorChildren>, Error> { ) -> Result<Vec<ComplexSelectorChildren>, Error> {
let mut pseudo_index = None; let mut pseudo_index = None;
let empty_tokens = vec![]; let empty_tokens = Tokens {
span: node.span,
tokens: vec![],
};
let mut arg_tokens; let mut arg_tokens;
for (i, selector) in node.subclass_selectors.iter().enumerate() { for (i, selector) in node.subclass_selectors.iter().enumerate() {
let (name, args) = match selector { let (name, args) = match selector {
SubclassSelector::PseudoClass(PseudoClassSelector { name, children, .. }) => { SubclassSelector::PseudoClass(PseudoClassSelector { name, children, .. }) => {
arg_tokens = children match children {
.iter() Some(PseudoSelectorChildren::Nth(v)) => {
.flatten() arg_tokens = nth_to_tokens(&v);
.flat_map(|v| match v { (name, &arg_tokens)
PseudoSelectorChildren::Nth(v) => nth_to_tokens(v).tokens, }
PseudoSelectorChildren::PreservedToken(v) => vec![v.clone()], Some(PseudoSelectorChildren::Tokens(v)) => (name, v),
}) None => (name, &empty_tokens),
.collect::<Vec<_>>(); }
(name, &arg_tokens)
} }
SubclassSelector::PseudoElement(PseudoElementSelector { SubclassSelector::PseudoElement(PseudoElementSelector {
name, children, .. name, children, ..
...@@ -233,19 +280,9 @@ impl Namespacer { ...@@ -233,19 +280,9 @@ impl Namespacer {
// One off global selector // One off global selector
if &name.value == "global" { if &name.value == "global" {
let args = args.clone();
let mut args = {
let lo = args.first().map(|v| v.span.lo).unwrap_or(BytePos(0));
let hi = args.last().map(|v| v.span.hi).unwrap_or(BytePos(0));
Tokens {
span: Span::new(lo, hi, Default::default()),
tokens: args,
}
};
let block_tokens = get_block_tokens(&args); let block_tokens = get_block_tokens(&args);
let mut front_tokens = get_front_selector_tokens(&args); let mut front_tokens = get_front_selector_tokens(&args);
let mut args = args.clone();
front_tokens.extend(args.tokens); front_tokens.extend(args.tokens);
front_tokens.extend(block_tokens); front_tokens.extend(block_tokens);
args.tokens = front_tokens; args.tokens = front_tokens;
...@@ -254,6 +291,7 @@ impl Namespacer { ...@@ -254,6 +291,7 @@ impl Namespacer {
let x: ComplexSelector = parse_tokens( let x: ComplexSelector = parse_tokens(
&args, &args,
ParserConfig { ParserConfig {
parse_values: false,
allow_wrong_line_comments: true, allow_wrong_line_comments: true,
}, },
// TODO(kdy1): We might be able to report syntax errors. // TODO(kdy1): We might be able to report syntax errors.
...@@ -484,6 +522,7 @@ fn nth_to_tokens(nth: &Nth) -> Tokens { ...@@ -484,6 +522,7 @@ fn nth_to_tokens(nth: &Nth) -> Tokens {
let mut lexer = swc_css::parser::lexer::Lexer::new( let mut lexer = swc_css::parser::lexer::Lexer::new(
StringInput::new(&s, nth.span.lo, nth.span.hi), StringInput::new(&s, nth.span.lo, nth.span.hi),
ParserConfig { ParserConfig {
parse_values: false,
allow_wrong_line_comments: true, allow_wrong_line_comments: true,
..Default::default() ..Default::default()
}, },
......
import _JSXStyle from "styled-jsx/style"; import _JSXStyle from "styled-jsx/style";
export default { export default {
styles: <_JSXStyle id={"71f03d42ea0ec6"}>{".container.jsx-71f03d42ea0ec6{background:#000;color:white;font-weight:700;height:100px}"}</_JSXStyle>, styles: <_JSXStyle id={"71f03d42ea0ec6"}>{".container.jsx-71f03d42ea0ec6{background:#000;\ncolor:white;\nfont-weight:700;\nheight:100px}"}</_JSXStyle>,
className: "jsx-71f03d42ea0ec6" className: "jsx-71f03d42ea0ec6"
}; };
\ No newline at end of file
...@@ -4,7 +4,7 @@ function NavigationItem({ active , className }) { ...@@ -4,7 +4,7 @@ function NavigationItem({ active , className }) {
active active
}, className, "navigation-item") || "")}> }, className, "navigation-item") || "")}>
<_JSXStyle id={"2342aae4628612c6"}>{".navigation-item.jsx-2342aae4628612c6 a::after{content:attr(data-text);content:attr(data-text)/\"\"}"}</_JSXStyle> <_JSXStyle id={"2342aae4628612c6"}>{".navigation-item.jsx-2342aae4628612c6 a::after{content:attr(data-text);\ncontent: attr(data-text) / ''}"}</_JSXStyle>
</span>; </span>;
} }
......
...@@ -51,7 +51,8 @@ export default (({ display })=><div className={"jsx-1ada4ad4dab7822f " + _JSXSt ...@@ -51,7 +51,8 @@ export default (({ display })=><div className={"jsx-1ada4ad4dab7822f " + _JSXSt
] ]
])}>test</p> ])}>test</p>
<_JSXStyle id={"6116059e04f3bff7"}>{`p.${color}.jsx-1ada4ad4dab7822f{color:${otherColor};display:${obj.display}}`}</_JSXStyle> <_JSXStyle id={"6116059e04f3bff7"}>{`p.${color}.jsx-1ada4ad4dab7822f{color:${otherColor};
display:${obj.display}}`}</_JSXStyle>
<_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-1ada4ad4dab7822f{color:red}"}</_JSXStyle> <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-1ada4ad4dab7822f{color:red}"}</_JSXStyle>
...@@ -73,11 +74,16 @@ export default (({ display })=><div className={"jsx-1ada4ad4dab7822f " + _JSXSt ...@@ -73,11 +74,16 @@ export default (({ display })=><div className={"jsx-1ada4ad4dab7822f " + _JSXSt
darken(color) + 2 darken(color) + 2
]}>{`p.__jsx-style-dynamic-selector{color:${darken(color) + 2}}`}</_JSXStyle> ]}>{`p.__jsx-style-dynamic-selector{color:${darken(color) + 2}}`}</_JSXStyle>
<_JSXStyle id={"4e4be2da62837c76"}>{`@media(min-width:${mediumScreen}){p.jsx-1ada4ad4dab7822f{color:green}p.jsx-1ada4ad4dab7822f{color:${`red`}}}p.jsx-1ada4ad4dab7822f{color:red}`}</_JSXStyle> <_JSXStyle id={"4e4be2da62837c76"}>{`@media (min-width:${mediumScreen}) {p.jsx-1ada4ad4dab7822f{color:green}
p.jsx-1ada4ad4dab7822f{color:${`red`}}}
p.jsx-1ada4ad4dab7822f{color:red}`}</_JSXStyle>
<_JSXStyle id={"27040f0829fb73d4"}>{`p.jsx-1ada4ad4dab7822f{-webkit-animation-duration:${animationDuration};animation-duration:${animationDuration}}`}</_JSXStyle> <_JSXStyle id={"27040f0829fb73d4"}>{`p.jsx-1ada4ad4dab7822f{-webkit-animation-duration:${animationDuration};
animation-duration:${animationDuration}}`}</_JSXStyle>
<_JSXStyle id={"3e72d735e703a530"}>{`p.jsx-1ada4ad4dab7822f{-webkit-animation:${animationDuration} forwards ${animationName};animation:${animationDuration} forwards ${animationName}}div.jsx-1ada4ad4dab7822f{background:${color}}`}</_JSXStyle> <_JSXStyle id={"3e72d735e703a530"}>{`p.jsx-1ada4ad4dab7822f{-webkit-animation:${animationDuration} forwards ${animationName};
animation:${animationDuration} forwards ${animationName}}
div.jsx-1ada4ad4dab7822f{background:${color}}`}</_JSXStyle>
......
...@@ -14,7 +14,7 @@ export default (()=><div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__ha ...@@ -14,7 +14,7 @@ export default (()=><div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__ha
<div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__hash} jsx-${styles3.__hash}`}>woot</div> <div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles.__hash} jsx-${styles3.__hash}`}>woot</div>
<_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"}</_JSXStyle> <_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}\ndiv.jsx-bee92b62eadf8a14{color:green}"}</_JSXStyle>
<_JSXStyle id={styles.__hash}>{styles}</_JSXStyle> <_JSXStyle id={styles.__hash}>{styles}</_JSXStyle>
...@@ -30,7 +30,7 @@ export const Test = ()=><div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3 ...@@ -30,7 +30,7 @@ export const Test = ()=><div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3
<div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3.__hash}`}>woot</div> <div className={"jsx-bee92b62eadf8a14 " + `jsx-${styles3.__hash}`}>woot</div>
<_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"}</_JSXStyle> <_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}\ndiv.jsx-bee92b62eadf8a14{color:green}"}</_JSXStyle>
</div> </div>
; ;
...@@ -28,7 +28,7 @@ export default (()=><> ...@@ -28,7 +28,7 @@ export default (()=><>
</> </>
<_JSXStyle id={"6dd5f97e085c0297"}>{"p.jsx-6dd5f97e085c0297{color:cyan}.foo.jsx-6dd5f97e085c0297{font-size:18px;color:hotpink}#head.jsx-6dd5f97e085c0297{text-decoration:underline}"}</_JSXStyle> <_JSXStyle id={"6dd5f97e085c0297"}>{"p.jsx-6dd5f97e085c0297{color:cyan}\n.foo.jsx-6dd5f97e085c0297{font-size:18px;\ncolor:hotpink}\n#head.jsx-6dd5f97e085c0297{text-decoration:underline}"}</_JSXStyle>
</> </>
); );
......
import _JSXStyle from "styled-jsx/style"; import _JSXStyle from "styled-jsx/style";
const Test = ()=><div className={"jsx-d47d6adadf14e957"}> const Test = ()=><div className={"jsx-d47d6adadf14e957"}>
<_JSXStyle id={"d47d6adadf14e957"}>{"body{color:red}:hover{color:red;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-animation:foo 1s ease-out;animation:foo 1s ease-out}div a{display:none}[data-test]>div{color:red}"}</_JSXStyle> <_JSXStyle id={"d47d6adadf14e957"}>{"body{color:red}\n:hover{color:red;\ndisplay:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\n-webkit-animation:foo 1s ease-out;\nanimation:foo 1s ease-out}\ndiv a{display:none}\n[data-test]>div{color:red}"}</_JSXStyle>
</div> </div>
; ;
......
...@@ -10,7 +10,7 @@ export default (({ breakPoint })=><div className={_JSXStyle.dynamic([ ...@@ -10,7 +10,7 @@ export default (({ breakPoint })=><div className={_JSXStyle.dynamic([
<_JSXStyle id={"42a6f8ca08e1a043"} dynamic={[ <_JSXStyle id={"42a6f8ca08e1a043"} dynamic={[
breakPoint breakPoint
]}>{`@media(${breakPoint}){}`}</_JSXStyle> ]}>{`@media (${breakPoint}) {}`}</_JSXStyle>
</div> </div>
); );
...@@ -6,7 +6,7 @@ export default function IndexPage() { ...@@ -6,7 +6,7 @@ export default function IndexPage() {
<_JSXStyle id={"bbdada4ef17d18ef"}>{"@supports(display:flex){h1{color:hotpink}}"}</_JSXStyle> <_JSXStyle id={"bbdada4ef17d18ef"}>{"@supports (display:flex) {h1{color:hotpink}}"}</_JSXStyle>
</div>; </div>;
}; };
...@@ -36,7 +36,10 @@ export default class { ...@@ -36,7 +36,10 @@ export default class {
Typography.base.size.mediumPlus, Typography.base.size.mediumPlus,
Target.largePlus, Target.largePlus,
Typography.base.size.largePlus Typography.base.size.largePlus
]}>{`html{font-size:${Typography.base.size.default};line-height:${Typography.base.lineHeight}}@media ${Target.mediumPlus}{html{font-size:${Typography.base.size.mediumPlus}}}@media ${Target.largePlus}{html{font-size:${Typography.base.size.largePlus}}}`}</_JSXStyle> ]}>{`html{font-size:${Typography.base.size.default};
line-height:${Typography.base.lineHeight}}
@media ${Target.mediumPlus} {html{font-size:${Typography.base.size.mediumPlus}}}
@media ${Target.largePlus} {html{font-size:${Typography.base.size.largePlus}}}`}</_JSXStyle>
</div>; </div>;
} }
......
...@@ -11,18 +11,21 @@ export const uh = bar; ...@@ -11,18 +11,21 @@ export const uh = bar;
export const foo = new String(`div.jsx-945eaa83250ed332{color:${color}}`); export const foo = new String(`div.jsx-945eaa83250ed332{color:${color}}`);
foo.__hash = "945eaa83250ed332"; foo.__hash = "945eaa83250ed332";
({ ({
styles: <_JSXStyle id={"c107a919a5b2943d"}>{`div.jsx-c107a919a5b2943d{color:${colors.green.light}}a.jsx-c107a919a5b2943d{color:red}`}</_JSXStyle>, styles: <_JSXStyle id={"c107a919a5b2943d"}>{`div.jsx-c107a919a5b2943d{color:${colors.green.light}}
a.jsx-c107a919a5b2943d{color:red}`}</_JSXStyle>,
className: "jsx-c107a919a5b2943d" className: "jsx-c107a919a5b2943d"
}); });
const b = { const b = {
styles: <_JSXStyle id={"c107a919a5b2943d"}>{`div.jsx-c107a919a5b2943d{color:${colors.green.light}}a.jsx-c107a919a5b2943d{color:red}`}</_JSXStyle>, styles: <_JSXStyle id={"c107a919a5b2943d"}>{`div.jsx-c107a919a5b2943d{color:${colors.green.light}}
a.jsx-c107a919a5b2943d{color:red}`}</_JSXStyle>,
className: "jsx-c107a919a5b2943d" className: "jsx-c107a919a5b2943d"
}; };
const dynamic = (colors1)=>{ const dynamic = (colors1)=>{
const b = { const b = {
styles: <_JSXStyle id={"60132422fc87f1d1"} dynamic={[ styles: <_JSXStyle id={"60132422fc87f1d1"} dynamic={[
colors1.green.light colors1.green.light
]}>{`div.__jsx-style-dynamic-selector{color:${colors1.green.light}}a.__jsx-style-dynamic-selector{color:red}`}</_JSXStyle>, ]}>{`div.__jsx-style-dynamic-selector{color:${colors1.green.light}}
a.__jsx-style-dynamic-selector{color:red}`}</_JSXStyle>,
className: _JSXStyle.dynamic([ className: _JSXStyle.dynamic([
[ [
"60132422fc87f1d1", "60132422fc87f1d1",
...@@ -34,6 +37,7 @@ const dynamic = (colors1)=>{ ...@@ -34,6 +37,7 @@ const dynamic = (colors1)=>{
}; };
}; };
export default { export default {
styles: <_JSXStyle id={"e5da8dd7ff5c7f39"}>{`div.jsx-e5da8dd7ff5c7f39{font-size:3em}p.jsx-e5da8dd7ff5c7f39{color:${color}}`}</_JSXStyle>, styles: <_JSXStyle id={"e5da8dd7ff5c7f39"}>{`div.jsx-e5da8dd7ff5c7f39{font-size:3em}
p.jsx-e5da8dd7ff5c7f39{color:${color}}`}</_JSXStyle>,
className: "jsx-e5da8dd7ff5c7f39" className: "jsx-e5da8dd7ff5c7f39"
}; };
...@@ -43,7 +43,21 @@ export const Red = ({ Component ="button" })=>{ ...@@ -43,7 +43,21 @@ export const Red = ({ Component ="button" })=>{
e13, e13,
e14, e14,
e15 e15
]}>{`.button.__jsx-style-dynamic-selector{--button-1:${e1};--button-2:${e2};--button-3:${e3};--button-4:${e4};--button-5:${e5};--button-6:${e6};--button-7:${e7};--button-8:${e8};--button-9:${e9};--button-10:${e10};--button-11:${e11};--button-12:${e12};--button-13:${e13};--button-14:${e14};--button-15:${e15}}`}</_JSXStyle> ]}>{`.button.__jsx-style-dynamic-selector{--button-1: ${e1};
--button-2: ${e2};
--button-3: ${e3};
--button-4: ${e4};
--button-5: ${e5};
--button-6: ${e6};
--button-7: ${e7};
--button-8: ${e8};
--button-9: ${e9};
--button-10: ${e10};
--button-11: ${e11};
--button-12: ${e12};
--button-13: ${e13};
--button-14: ${e14};
--button-15: ${e15}}`}</_JSXStyle>
</Component>; </Component>;
}; };
...@@ -5,7 +5,7 @@ export default class { ...@@ -5,7 +5,7 @@ export default class {
<p className={"jsx-1f6cef12199c3a8f"}>test</p> <p className={"jsx-1f6cef12199c3a8f"}>test</p>
<_JSXStyle id={"1f6cef12199c3a8f"}>{"p.jsx-1f6cef12199c3a8f{content:\"`\"}"}</_JSXStyle> <_JSXStyle id={"1f6cef12199c3a8f"}>{"p.jsx-1f6cef12199c3a8f{content:'`'}"}</_JSXStyle>
</div>; </div>;
} }
......
...@@ -11,7 +11,8 @@ export default function Home({ fontFamily }) { ...@@ -11,7 +11,8 @@ export default function Home({ fontFamily }) {
<_JSXStyle id={"f804e2f486b6ac13"} dynamic={[ <_JSXStyle id={"f804e2f486b6ac13"} dynamic={[
fontFamily fontFamily
]}>{`body{font-family:${fontFamily}}code:before,code:after{content:"\`"}`}</_JSXStyle> ]}>{`body{font-family:${fontFamily}}
code:before, code:after{content:'\`'}`}</_JSXStyle>
</div>; </div>;
}; };
...@@ -21,7 +21,7 @@ export default class { ...@@ -21,7 +21,7 @@ export default class {
<_JSXStyle id={"e359801ddd3b3cb6"} dynamic={[ <_JSXStyle id={"e359801ddd3b3cb6"} dynamic={[
inputSize ? "height: calc(2 * var(--a)) !important;" : "" inputSize ? "height: calc(2 * var(--a)) !important;" : ""
]}>{`@media only screen{a.__jsx-style-dynamic-selector{${inputSize ? "height: calc(2 * var(--a)) !important;" : ""} ]}>{`@media only screen {a.__jsx-style-dynamic-selector{${inputSize ? "height: calc(2 * var(--a)) !important;" : ""}
}}`}</_JSXStyle> }}`}</_JSXStyle>
</div>; </div>;
......
...@@ -27,7 +27,8 @@ export default class { ...@@ -27,7 +27,8 @@ export default class {
a[b], a[b],
-1 * (c || 0), -1 * (c || 0),
d d
]}>{`.a:hover .b.__jsx-style-dynamic-selector{a:${a[b]}px!important;b:translate3d(0,${-1 * (c || 0)}px,-${d}px)scale(1)!important}`}</_JSXStyle> ]}>{`.a:hover .b.__jsx-style-dynamic-selector{a:${a[b]}px!important;
b:translate3d(0, ${-1 * (c || 0)}px, -${d}px) scale(1)!important}`}</_JSXStyle>
</div>; </div>;
} }
......
...@@ -21,7 +21,7 @@ export default class { ...@@ -21,7 +21,7 @@ export default class {
<_JSXStyle id={"4ca4ef3595473f53"} dynamic={[ <_JSXStyle id={"4ca4ef3595473f53"} dynamic={[
a a
]}>{`@media only screen{a.__jsx-style-dynamic-selector{color:${a}}}`}</_JSXStyle> ]}>{`@media only screen {a.__jsx-style-dynamic-selector{color:${a}}}`}</_JSXStyle>
</div>; </div>;
} }
......
...@@ -24,7 +24,9 @@ export default class { ...@@ -24,7 +24,9 @@ export default class {
<_JSXStyle id={"97886c1e9511aafa"} dynamic={[ <_JSXStyle id={"97886c1e9511aafa"} dynamic={[
a || "var(--c)", a || "var(--c)",
b || "inherit" b || "inherit"
]}>{`.a:hover .b.__jsx-style-dynamic-selector{display:inline-block;padding:0 ${a || "var(--c)"};color:${b || "inherit"}}`}</_JSXStyle> ]}>{`.a:hover .b.__jsx-style-dynamic-selector{display:inline-block;
padding:0 ${a || "var(--c)"};
color:${b || "inherit"}}`}</_JSXStyle>
</div>; </div>;
} }
......
...@@ -24,7 +24,8 @@ export default class { ...@@ -24,7 +24,8 @@ export default class {
<_JSXStyle id={"bcc606c168bcd197"} dynamic={[ <_JSXStyle id={"bcc606c168bcd197"} dynamic={[
a ? "100%" : "200px", a ? "100%" : "200px",
b ? "0" : "8px 20px" b ? "0" : "8px 20px"
]}>{`.item.__jsx-style-dynamic-selector{max-width:${a ? "100%" : "200px"};padding:${b ? "0" : "8px 20px"}}`}</_JSXStyle> ]}>{`.item.__jsx-style-dynamic-selector{max-width:${a ? "100%" : "200px"};
padding:${b ? "0" : "8px 20px"}}`}</_JSXStyle>
</div>; </div>;
} }
......
...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-713499aa363d6373"}> ...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-713499aa363d6373"}>
<p className={"jsx-713499aa363d6373"}>test</p> <p className={"jsx-713499aa363d6373"}>test</p>
<_JSXStyle id={"713499aa363d6373"}>{"p.jsx-713499aa363d6373 a.jsx-713499aa363d6373 span.jsx-713499aa363d6373{color:red}p.jsx-713499aa363d6373 span{background:blue}p.jsx-713499aa363d6373 a[title=\"'w ' ' t'\"].jsx-713499aa363d6373{margin:auto}p.jsx-713499aa363d6373 span:not(.test){color:green}p.jsx-713499aa363d6373,h1.jsx-713499aa363d6373{color:blue;-webkit-animation:hahaha 3s ease forwards infinite;animation:hahaha 3s ease forwards infinite;-webkit-animation-name:hahaha;animation-name:hahaha;animation-delay:100ms}p.jsx-713499aa363d6373{-webkit-animation:hahaha 1s,hehehe 2s;animation:hahaha 1s,hehehe 2s}p.jsx-713499aa363d6373:hover{color:red}p.jsx-713499aa363d6373::before{color:red}.jsx-713499aa363d6373:hover{color:red}.jsx-713499aa363d6373::before{color:red}.jsx-713499aa363d6373:hover p.jsx-713499aa363d6373{color:red}p.jsx-713499aa363d6373+a.jsx-713499aa363d6373{color:red}p.jsx-713499aa363d6373~a.jsx-713499aa363d6373{color:red}p.jsx-713499aa363d6373>a.jsx-713499aa363d6373{color:red}@keyframes hahaha{from{top:0}to{top:100}}@keyframes hehehe{from{left:0}to{left:100}}@media(min-width:500px){.test.jsx-713499aa363d6373{color:red}}.test.jsx-713499aa363d6373{display:block}.inline-flex.jsx-713499aa363d6373{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.flex.jsx-713499aa363d6373{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.test.jsx-713499aa363d6373{box-shadow:0 0 10px black,inset 0 0 5px black}.test[title=\",\"].jsx-713499aa363d6373{display:inline-block}.test.is-status.jsx-713499aa363d6373 .test.jsx-713499aa363d6373{color:red}.a-selector.jsx-713499aa363d6373:hover,.a-selector.jsx-713499aa363d6373:focus{outline:none}"}</_JSXStyle> <_JSXStyle id={"713499aa363d6373"}>{"p.jsx-713499aa363d6373 a.jsx-713499aa363d6373 span.jsx-713499aa363d6373{color:red}\np.jsx-713499aa363d6373 span{background:blue}\np.jsx-713499aa363d6373 a[title=\"'w ' ' t'\"].jsx-713499aa363d6373{margin:auto}\np.jsx-713499aa363d6373 span:not(.test){color:green}\np.jsx-713499aa363d6373, h1.jsx-713499aa363d6373{color:blue;\n-webkit-animation:hahaha 3s ease forwards infinite;\nanimation:hahaha 3s ease forwards infinite;\n-webkit-animation-name:hahaha;\nanimation-name:hahaha;\nanimation-delay:100ms}\np.jsx-713499aa363d6373{-webkit-animation:hahaha 1s, hehehe 2s;\nanimation:hahaha 1s, hehehe 2s}\np.jsx-713499aa363d6373:hover{color:red}\np.jsx-713499aa363d6373::before{color:red}\n.jsx-713499aa363d6373:hover{color:red}\n.jsx-713499aa363d6373::before{color:red}\n.jsx-713499aa363d6373:hover p.jsx-713499aa363d6373{color:red}\np.jsx-713499aa363d6373+a.jsx-713499aa363d6373{color:red}\np.jsx-713499aa363d6373~a.jsx-713499aa363d6373{color:red}\np.jsx-713499aa363d6373>a.jsx-713499aa363d6373{color:red}\n@keyframes hahaha {from {top:0}to {top:100}}\n@keyframes hehehe {from {left:0}to {left:100}}\n@media (min-width:500px) {.test.jsx-713499aa363d6373{color:red}}\n.test.jsx-713499aa363d6373{display:block}\n.inline-flex.jsx-713499aa363d6373{display:-webkit-inline-box;\ndisplay:-webkit-inline-flex;\ndisplay:-ms-inline-flexbox;\ndisplay:inline-flex}\n.flex.jsx-713499aa363d6373{display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex}\n.test.jsx-713499aa363d6373{box-shadow:0 0 10px black, inset 0 0 5px black}\n.test[title=\",\"].jsx-713499aa363d6373{display:inline-block}\n.test.is-status.jsx-713499aa363d6373 .test.jsx-713499aa363d6373{color:red}\n.a-selector.jsx-713499aa363d6373:hover, .a-selector.jsx-713499aa363d6373:focus{outline:none}"}</_JSXStyle>
</div> </div>
); );
...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-53fd644ab080300c"}> ...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-53fd644ab080300c"}>
<p className={"jsx-53fd644ab080300c"}>test</p> <p className={"jsx-53fd644ab080300c"}>test</p>
<_JSXStyle id={"53fd644ab080300c"}>{"html.jsx-53fd644ab080300c{background-image:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.8)),url(/static/background.svg)}p{color:blue}p{color:blue}p,a.jsx-53fd644ab080300c{color:blue}.foo+a{color:red}body{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Helvetica,Arial,sans-serif}"}</_JSXStyle> <_JSXStyle id={"53fd644ab080300c"}>{"html.jsx-53fd644ab080300c{background-image:linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url(/static/background.svg)}\np{color:blue}\np{color:blue}\np, a.jsx-53fd644ab080300c{color:blue}\n.foo+a{color:red}\nbody{font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif}"}</_JSXStyle>
</div> </div>
); );
...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-1f7963ae04c6466a"}> ...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-1f7963ae04c6466a"}>
<p className={"jsx-1f7963ae04c6466a"}>test</p> <p className={"jsx-1f7963ae04c6466a"}>test</p>
<_JSXStyle id={"1f7963ae04c6466a"}>{"@media(min-width:1px)and (max-width:768px){[class*=\"grid__col--\"].jsx-1f7963ae04c6466a{margin-top:12px;margin-bottom:12px}}@media(max-width:64em){.test.jsx-1f7963ae04c6466a{margin-bottom:1em}@supports(-moz-appearance:none)and (display:contents){.test.jsx-1f7963ae04c6466a{margin-bottom:2rem}}}"}</_JSXStyle> <_JSXStyle id={"1f7963ae04c6466a"}>{"@media (min-width:1px) and (max-width:768px) {[class*='grid__col--'].jsx-1f7963ae04c6466a{margin-top:12px;\nmargin-bottom:12px}}\n@media (max-width:64em) {.test.jsx-1f7963ae04c6466a{margin-bottom:1em}\n@supports (-moz-appearance:none) and (display:contents) {.test.jsx-1f7963ae04c6466a{margin-bottom:2rem}}}"}</_JSXStyle>
</div> </div>
); );
...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-1a19bb4817c105dd"}> ...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-1a19bb4817c105dd"}>
<p className={"jsx-1a19bb4817c105dd"}>test</p> <p className={"jsx-1a19bb4817c105dd"}>test</p>
<_JSXStyle id={"1a19bb4817c105dd"}>{"p.jsx-1a19bb4817c105dd{color:red}p.jsx-1a19bb4817c105dd{color:red}*.jsx-1a19bb4817c105dd{color:blue}[href=\"woot\"].jsx-1a19bb4817c105dd{color:red}"}</_JSXStyle> <_JSXStyle id={"1a19bb4817c105dd"}>{"p.jsx-1a19bb4817c105dd{color:red}\np.jsx-1a19bb4817c105dd{color:red}\n*.jsx-1a19bb4817c105dd{color:blue}\n[href=\"woot\"].jsx-1a19bb4817c105dd{color:red}"}</_JSXStyle>
</div> </div>
); );
...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-768337a97aceabd1"}> ...@@ -3,7 +3,7 @@ export default (()=><div className={"jsx-768337a97aceabd1"}>
<p className={"jsx-768337a97aceabd1"}>test</p> <p className={"jsx-768337a97aceabd1"}>test</p>
<_JSXStyle id={"768337a97aceabd1"}>{"html.jsx-768337a97aceabd1{background-image:linear-gradient(0deg,rgba(255,255,255,.8),rgba(255,255,255,.8)),url(/static/background.svg)}p{color:blue}p{color:blue}p,a.jsx-768337a97aceabd1{color:blue}.foo+a{color:red}body{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Helvetica,Arial,sans-serif}p.jsx-768337a97aceabd1{color:red}p.jsx-768337a97aceabd1{color:red}*.jsx-768337a97aceabd1{color:blue}[href=\"woot\"].jsx-768337a97aceabd1{color:red}p.jsx-768337a97aceabd1 a.jsx-768337a97aceabd1 span.jsx-768337a97aceabd1{color:red}p.jsx-768337a97aceabd1 span{background:blue}p.jsx-768337a97aceabd1 a[title=\"'w ' ' t'\"].jsx-768337a97aceabd1{margin:auto}p.jsx-768337a97aceabd1 span:not(.test){color:green}p.jsx-768337a97aceabd1,h1.jsx-768337a97aceabd1{color:blue;-webkit-animation:hahaha 3s ease forwards infinite;animation:hahaha 3s ease forwards infinite;-webkit-animation-name:hahaha;animation-name:hahaha;animation-delay:100ms}p.jsx-768337a97aceabd1{-webkit-animation:hahaha 1s,hehehe 2s;animation:hahaha 1s,hehehe 2s}p.jsx-768337a97aceabd1:hover{color:red}p.jsx-768337a97aceabd1::before{color:red}.jsx-768337a97aceabd1:hover{color:red}.jsx-768337a97aceabd1::before{color:red}.jsx-768337a97aceabd1:hover p.jsx-768337a97aceabd1{color:red}p.jsx-768337a97aceabd1+a.jsx-768337a97aceabd1{color:red}p.jsx-768337a97aceabd1~a.jsx-768337a97aceabd1{color:red}p.jsx-768337a97aceabd1>a.jsx-768337a97aceabd1{color:red}@keyframes hahaha{from{top:0}to{top:100}}@keyframes hehehe{from{left:0}to{left:100}}@media(min-width:500px){.test.jsx-768337a97aceabd1{color:red}}.test.jsx-768337a97aceabd1{display:block}.inline-flex.jsx-768337a97aceabd1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex}.flex.jsx-768337a97aceabd1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.test.jsx-768337a97aceabd1{box-shadow:0 0 10px black,inset 0 0 5px black}.test[title=\",\"].jsx-768337a97aceabd1{display:inline-block}.test.is-status.jsx-768337a97aceabd1 .test.jsx-768337a97aceabd1{color:red}.a-selector.jsx-768337a97aceabd1:hover,.a-selector.jsx-768337a97aceabd1:focus{outline:none}@media(min-width:1px)and (max-width:768px){[class*=\"grid__col--\"].jsx-768337a97aceabd1{margin-top:12px;margin-bottom:12px}}@media(max-width:64em){.test.jsx-768337a97aceabd1{margin-bottom:1em}@supports(-moz-appearance:none)and (display:contents){.test.jsx-768337a97aceabd1{margin-bottom:2rem}}}"}</_JSXStyle> <_JSXStyle id={"768337a97aceabd1"}>{"html.jsx-768337a97aceabd1{background-image:linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url(/static/background.svg)}\np{color:blue}\np{color:blue}\np, a.jsx-768337a97aceabd1{color:blue}\n.foo+a{color:red}\nbody{font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif}\np.jsx-768337a97aceabd1{color:red}\np.jsx-768337a97aceabd1{color:red}\n*.jsx-768337a97aceabd1{color:blue}\n[href=\"woot\"].jsx-768337a97aceabd1{color:red}\np.jsx-768337a97aceabd1 a.jsx-768337a97aceabd1 span.jsx-768337a97aceabd1{color:red}\np.jsx-768337a97aceabd1 span{background:blue}\np.jsx-768337a97aceabd1 a[title=\"'w ' ' t'\"].jsx-768337a97aceabd1{margin:auto}\np.jsx-768337a97aceabd1 span:not(.test){color:green}\np.jsx-768337a97aceabd1, h1.jsx-768337a97aceabd1{color:blue;\n-webkit-animation:hahaha 3s ease forwards infinite;\nanimation:hahaha 3s ease forwards infinite;\n-webkit-animation-name:hahaha;\nanimation-name:hahaha;\nanimation-delay:100ms}\np.jsx-768337a97aceabd1{-webkit-animation:hahaha 1s, hehehe 2s;\nanimation:hahaha 1s, hehehe 2s}\np.jsx-768337a97aceabd1:hover{color:red}\np.jsx-768337a97aceabd1::before{color:red}\n.jsx-768337a97aceabd1:hover{color:red}\n.jsx-768337a97aceabd1::before{color:red}\n.jsx-768337a97aceabd1:hover p.jsx-768337a97aceabd1{color:red}\np.jsx-768337a97aceabd1+a.jsx-768337a97aceabd1{color:red}\np.jsx-768337a97aceabd1~a.jsx-768337a97aceabd1{color:red}\np.jsx-768337a97aceabd1>a.jsx-768337a97aceabd1{color:red}\n@keyframes hahaha {from {top:0}to {top:100}}\n@keyframes hehehe {from {left:0}to {left:100}}\n@media (min-width:500px) {.test.jsx-768337a97aceabd1{color:red}}\n.test.jsx-768337a97aceabd1{display:block}\n.inline-flex.jsx-768337a97aceabd1{display:-webkit-inline-box;\ndisplay:-webkit-inline-flex;\ndisplay:-ms-inline-flexbox;\ndisplay:inline-flex}\n.flex.jsx-768337a97aceabd1{display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex}\n.test.jsx-768337a97aceabd1{box-shadow:0 0 10px black, inset 0 0 5px black}\n.test[title=\",\"].jsx-768337a97aceabd1{display:inline-block}\n.test.is-status.jsx-768337a97aceabd1 .test.jsx-768337a97aceabd1{color:red}\n.a-selector.jsx-768337a97aceabd1:hover, .a-selector.jsx-768337a97aceabd1:focus{outline:none}\n@media (min-width:1px) and (max-width:768px) {[class*='grid__col--'].jsx-768337a97aceabd1{margin-top:12px;\nmargin-bottom:12px}}\n@media (max-width:64em) {.test.jsx-768337a97aceabd1{margin-bottom:1em}\n@supports (-moz-appearance:none) and (display:contents) {.test.jsx-768337a97aceabd1{margin-bottom:2rem}}}"}</_JSXStyle>
</div> </div>
); );
function a(a, b) { import a from "other";
function b(a, b) {
(null == b || b > a.length) && (b = a.length); (null == b || b > a.length) && (b = a.length);
for(var c = 0, d = new Array(b); c < b; c++)d[c] = a[c]; for(var c = 0, d = new Array(b); c < b; c++)d[c] = a[c];
return d; return d;
} }
import b from "other";
(function(a, c) { (function(a, c) {
return (function(a) { return (function(a) {
if (Array.isArray(a)) return a; if (Array.isArray(a)) return a;
...@@ -24,17 +24,17 @@ import b from "other"; ...@@ -24,17 +24,17 @@ import b from "other";
} }
return g; return g;
} }
})(a, c) || (function(b, c) { })(a, c) || (function(a, c) {
if (b) { if (a) {
if ("string" == typeof b) return a(b, c); if ("string" == typeof a) return b(a, c);
var d = Object.prototype.toString.call(b).slice(8, -1); var d = Object.prototype.toString.call(a).slice(8, -1);
if ("Object" === d && b.constructor && (d = b.constructor.name), "Map" === d || "Set" === d) return Array.from(d); if ("Object" === d && a.constructor && (d = a.constructor.name), "Map" === d || "Set" === d) return Array.from(d);
if ("Arguments" === d || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)) return a(b, c); if ("Arguments" === d || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)) return b(a, c);
} }
})(a, c) || (function() { })(a, c) || (function() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
})(); })();
})(b, 1)[0]; })(a, 1)[0];
var c = function() { var c = function() {
"use strict"; "use strict";
!function(a, b) { !function(a, b) {
......
var _defaultExport = new String("@media(max-width:870px){th.expiration-date-cell,td.expiration-date-cell{display:none}}"); var _defaultExport = new String("@media (max-width:870px) {th.expiration-date-cell, td.expiration-date-cell{display:none}}");
_defaultExport.__hash = "fd71bf06ba8860bb"; _defaultExport.__hash = "fd71bf06ba8860bb";
export default _defaultExport; export default _defaultExport;
import other from 'other';
function _arrayLikeToArray(arr, len) { function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length; if (len == null || len > arr.length) len = arr.length;
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i]; for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
...@@ -49,7 +50,6 @@ function _unsupportedIterableToArray(o, minLen) { ...@@ -49,7 +50,6 @@ function _unsupportedIterableToArray(o, minLen) {
if (n === "Map" || n === "Set") return Array.from(n); if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
} }
import other from 'other';
var _other = _slicedToArray(other, 1), foo = _other[0]; var _other = _slicedToArray(other, 1), foo = _other[0];
var Foo = function Foo() { var Foo = function Foo() {
"use strict"; "use strict";
......
import { useEffect } from 'react';
import { select, selectAll } from 'd3-selection';
function _classCallCheck(instance, Constructor) { function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) { if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function"); throw new TypeError("Cannot call a class as a function");
} }
} }
import { useEffect } from 'react';
import { select, selectAll } from 'd3-selection';
export default function Home() { export default function Home() {
useEffect(function() { useEffect(function() {
new MyClass(); new MyClass();
......
import styled from 'styled-components';
function _taggedTemplateLiteral(strings, raw) { function _taggedTemplateLiteral(strings, raw) {
if (!raw) { if (!raw) {
raw = strings.slice(0); raw = strings.slice(0);
...@@ -17,7 +18,6 @@ function _templateObject() { ...@@ -17,7 +18,6 @@ function _templateObject() {
}; };
return data; return data;
} }
import styled from 'styled-components';
export var foo = styled.input.withConfig({ export var foo = styled.input.withConfig({
displayName: "input__foo", displayName: "input__foo",
componentId: "sc-12c52e68-0" componentId: "sc-12c52e68-0"
......
...@@ -16,12 +16,12 @@ once_cell = "1.8.0" ...@@ -16,12 +16,12 @@ once_cell = "1.8.0"
serde = "1" serde = "1"
serde_json = "1" serde_json = "1"
next-swc = { version = "0.0.0", path = "../core" } next-swc = { version = "0.0.0", path = "../core" }
swc = "0.126.2" swc = "0.121.7"
swc_atoms = "0.2.7" swc_atoms = "0.2.7"
swc_bundler = { version = "0.107.0", features = ["concurrent"] } swc_bundler = { version = "0.105.0", features = ["concurrent"] }
swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] } swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] }
swc_ecma_loader = { version = "0.28.0", features = ["node", "lru"] } swc_ecma_loader = { version = "0.28.0", features = ["node", "lru"] }
swc_ecmascript = { version = "0.114.2", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] } swc_ecmascript = { version = "0.112.6", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
swc_node_base = "0.5.1" swc_node_base = "0.5.1"
[build-dependencies] [build-dependencies]
......
...@@ -16,9 +16,9 @@ path-clean = "0.1" ...@@ -16,9 +16,9 @@ path-clean = "0.1"
serde = {version = "1", features = ["derive"]} serde = {version = "1", features = ["derive"]}
serde_json = "1" serde_json = "1"
next-swc = { version = "0.0.0", path = "../core" } next-swc = { version = "0.0.0", path = "../core" }
swc = "0.126.2" swc = "0.121.7"
swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] } swc_common = { version = "0.17.0", features = ["concurrent", "sourcemap"] }
swc_ecmascript = { version = "0.114.2", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] } swc_ecmascript = { version = "0.112.6", features = ["codegen", "minifier", "optimization", "parser", "react", "transforms", "typescript", "utils", "visit"] }
tracing = {version = "0.1.28", features = ["release_max_level_off"]} tracing = {version = "0.1.28", features = ["release_max_level_off"]}
wasm-bindgen = {version = "0.2", features = ["serde-serialize"]} wasm-bindgen = {version = "0.2", features = ["serde-serialize"]}
wasm-bindgen-futures = "0.4.8" wasm-bindgen-futures = "0.4.8"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment