Skip to content

Commit

Permalink
build: Update @swc/core to v1.7.14 (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Aug 20, 2024
1 parent 04f6d82 commit 7dd3c22
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 64 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-wasm": "^6.2.2",
"@rollup/pluginutils": "^5.1.0",
"@swc/core": "^1.6.1",
"@swc/core": "^1.7.14",
"@swc/helpers": "^0.5.11",
"arg": "^5.0.2",
"clean-css": "^5.3.3",
Expand Down
123 changes: 65 additions & 58 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
function e(){return React.createElement(React.Fragment,null,React.createElement("div",null,"hello"),React.createElement("h1",null,"yep"))}export{e as default};
function e(){return /*#__PURE__*/React.createElement(React.Fragment,null,/*#__PURE__*/React.createElement("div",null,"hello"),/*#__PURE__*/React.createElement("h1",null,"yep"))}export{e as default};
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";function n(){return e(r,{children:[i("div",{children:"hello"}),i("h1",{children:"yep"})]})}export{n as default};
import{jsxs as e,Fragment as r,jsx as i}from"react/jsx-runtime";function n(){return /*#__PURE__*/e(r,{children:[/*#__PURE__*/i("div",{children:"hello"}),/*#__PURE__*/i("h1",{children:"yep"})]})}export{n as default};
2 changes: 1 addition & 1 deletion test/compile/jsx/__snapshot__/jsx.min.js.snapshot
Original file line number Diff line number Diff line change
@@ -1 +1 @@
function e(){return React.createElement(React.Fragment,null,React.createElement("div",null,"hello"),React.createElement("h1",null,"yep"))}export{e as default};
function e(){return /*#__PURE__*/React.createElement(React.Fragment,null,/*#__PURE__*/React.createElement("div",null,"hello"),/*#__PURE__*/React.createElement("h1",null,"yep"))}export{e as default};
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"use client";function e(){return React.createElement("p",{className:"foo"},"foo")}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(".foo{transform-origin:center}");export{e as default};
"use client";function e(){return /*#__PURE__*/React.createElement("p",{className:"foo"},"foo")}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(".foo{transform-origin:center}");export{e as default};
2 changes: 1 addition & 1 deletion test/compile/tsx/__snapshot__/tsx.min.js.snapshot
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import e from"react";function t(){return e.createElement("div",null,"hello")}export{t as default};
import e from"react";function t(){return /*#__PURE__*/e.createElement("div",null,"hello")}export{t as default};

0 comments on commit 7dd3c22

Please sign in to comment.