file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/after-polyfills-2/input.mjs | JavaScript | // https://github.com/babel/babel/issues/12522
ReactDOM.render(<p>Hello, World!</p>, document.getElementById("root"));
// Imports are hoisted, so this is still ok
import "react-app-polyfill/ie11";
import "react-app-polyfill/stable";
import ReactDOM from "react-dom";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/after-polyfills-2/output.mjs | JavaScript | // https://github.com/babel/babel/issues/12522
ReactDOM.render( /*#__PURE__*/_jsx("p", {
children: "Hello, World!"
}), document.getElementById('root')); // Imports are hoisted, so this is still ok
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
import ReactDOM from 'react-dom';
import { jsx as ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/after-polyfills-compiled-to-cjs/input.mjs | JavaScript | // https://github.com/babel/babel/issues/12522
import "react-app-polyfill/ie11";
import "react-app-polyfill/stable";
import ReactDOM from "react-dom";
ReactDOM.render(<p>Hello, World!</p>, document.getElementById("root"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/after-polyfills-compiled-to-cjs/output.js | JavaScript | "use strict";
require("react-app-polyfill/ie11");
require("react-app-polyfill/stable");
var _reactDom = _interop_require_default(require("react-dom"));
var _jsxRuntime = require("react/jsx-runtime");
function _interop_require_default(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// https://githu... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/after-polyfills/input.mjs | JavaScript | // https://github.com/babel/babel/issues/12522
import "react-app-polyfill/ie11";
import "react-app-polyfill/stable";
import ReactDOM from "react-dom";
ReactDOM.render(<p>Hello, World!</p>, document.getElementById("root"));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/after-polyfills/output.mjs | JavaScript | // https://github.com/babel/babel/issues/12522
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
import ReactDOM from 'react-dom';
import { jsx as _jsx } from "react/jsx-runtime";
ReactDOM.render( /*#__PURE__*/_jsx("p", {
children: "Hello, World!"
}), document.getElementById('root'));
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/auto-import-react-source-type-module/input.js | JavaScript | var x = (
<>
<div>
<div key="1" />
<div key="2" meow="wolf" />
<div key="3" />
<div {...props} key="4" />
</div>
</>
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/auto-import-react-source-type-module/output.mjs | JavaScript | import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { createElement as _createElement } from "react";
var x = /*#__PURE__*/_jsx(_Fragment, {
children: /*#__PURE__*/_jsxs("div", {
children: [/*#__PURE__*/_jsx("div", {}, "1"), /*#__PURE__*/_jsx("div", {
m... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/complicated-scope-module/input.js | JavaScript | const Bar = () => {
const Foo = () => {
const Component = ({ thing, ..._react }) => {
if (!thing) {
var _react2 = "something useless";
var b = _react3();
var c = _react5();
var jsx = 1;
var _jsx = 2;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/complicated-scope-module/output.mjs | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";
const Bar = ()=>{
const Foo = ()=>{
const Component = ({ thing , ..._react })=>{
if (!thing) {
var _react2 = "something useless";
var b = _react3();
var c = _react5();
var jsx = 1;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/import-source-pragma/input.js | JavaScript | /** @jsxImportSource baz */
var x = (
<div>
<span />
</div>
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/import-source-pragma/output.mjs | JavaScript | /** @jsxImportSource baz */ import { jsx as _jsx } from "baz/jsx-runtime";
var x = /*#__PURE__*/ _jsx("div", {
children: /*#__PURE__*/ _jsx("span", {})
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/import-source/input.js | JavaScript | var x = (
<div>
<span />
</div>
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/import-source/output.mjs | JavaScript | import { jsx as _jsx } from "foo/jsx-runtime";
var x = /*#__PURE__*/ _jsx("div", {
children: /*#__PURE__*/ _jsx("span", {})
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/no-jsx/input.js | JavaScript | var foo = "<div></div>";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/no-jsx/output.mjs | JavaScript | var foo = "<div></div>";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/react-defined/input.js | JavaScript | import * as react from "react";
var y = react.createElement("div", { foo: 1 });
var x = (
<div>
<div key="1" />
<div key="2" meow="wolf" />
<div key="3" />
<div {...props} key="4" />
</div>
);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/autoImport/react-defined/output.mjs | JavaScript | import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { createElement as _createElement } from "react";
import * as react from "react";
var y = /*#__PURE__*/ react.createElement("div", {
foo: 1
});
var x = /*#__PURE__*/ _jsxs("div", {
children: [
/*#__PURE__*/ _jsx("div", {}, "1"),
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/cmt/1/input.js | JavaScript | import React from "react";
React.createElement("div");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/cmt/1/output.mjs | JavaScript | import React from "react";
/*#__PURE__*/ React.createElement("div");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-1446/input.js | JavaScript | <>
<span>Hello something long to not trigger line break</span>
</>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-1446/output.mjs | JavaScript | /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement("span", null, "Hello something long to not trigger line break"), " ");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-1799/case1/input.js | JavaScript | // Foo.jsx
import React from "react";
export default function Foo() {
return (
<div
onClick={async (e) => {
await doSomething();
}}
></div>
);
}
Foo.displayName = "Foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-1799/case1/output.mjs | JavaScript | // Foo.jsx
import React from "react";
export default function Foo() {
return /*#__PURE__*/ React.createElement("div", {
onClick: async (e)=>{
await doSomething();
}
});
}
Foo.displayName = "Foo";
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-1933/input.js | JavaScript | /* @jsxImportSource react */
const p = () => <div>Hello World</div>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-1933/output.js | JavaScript | /* @jsxImportSource react */ import { jsx as _jsx } from "react/jsx-runtime";
const p = ()=>/*#__PURE__*/ _jsx("div", {
children: "Hello World"
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-2037/input.js | JavaScript | const A = () => {
return <div>{...[]}</div>;
}; | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-2037/output.mjs | JavaScript | const A = ()=>{
return /*#__PURE__*/ React.createElement("div", null, ...[]);
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-2177/input.js | JavaScript | export var App = function () {
return (
<>
<div>1</div>
</>
);
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-2177/output.mjs | JavaScript | import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
export var App = function() {
return /*#__PURE__*/ _jsx(_Fragment, {
children: /*#__PURE__*/ _jsx("div", {
children: "1"
})
});
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-299/1/input.js | JavaScript | <Page num="\\ ">ABC</Page>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-299/1/output.mjs | JavaScript | /*#__PURE__*/ React.createElement(Page, {
num: "\\\\ "
}, "ABC");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-299/2/input.js | JavaScript | <Page num="\\\\">ABC</Page>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-299/2/output.mjs | JavaScript | /*#__PURE__*/ React.createElement(Page, {
num: "\\\\\\\\"
}, "ABC");
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-4070/input.js | JavaScript | const ChildrenFail = (props) => {
return array.map((label) => (
<WrapperWhereMagicHappens {...props} key={label}>
<h2>{label}</h2>
{/*<div>{console.log(props.children) || props.children}</div>*/}
</WrapperWhereMagicHappens>
));
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-4070/output.mjs | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";
import { createElement as _createElement } from "react";
const ChildrenFail = (props)=>{
return array.map((label)=>/*#__PURE__*/ _createElement(WrapperWhereMagicHappens, {
...props,
key: label
}, /*#__PURE__*/ _jsx("h2", {
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-4703/1/input.js | JavaScript | /** @jsx foo */
function ProductItem() {
return <div>Hello World</div>;
}
console.log(ProductItem);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-4703/1/output.mjs | JavaScript | /** @jsx foo */ import { jsx as _jsx } from "react/jsx-runtime";
function ProductItem() {
return /*#__PURE__*/ _jsx("div", {
children: "Hello World"
});
}
console.log(ProductItem);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5072/input.js | JavaScript | import React from "react";
import ReactDOM from "react-dom";
import { Button, Input } from "antd";
import Child from "./component/Child";
class Page extends React.Component {
render() {
return (
<div className={"test"}>
<div>Page</div>
<Child />
<... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5072/output.mjs | JavaScript | import React from "react";
import ReactDOM from "react-dom";
import { Button, Input } from "antd";
import Child from "./component/Child";
class Page extends React.Component {
render() {
return /*#__PURE__*/ React.createElement("div", {
className: "test"
}, /*#__PURE__*/ React.createEleme... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5099/1/input.js | JavaScript | /** @jsx h */
/** @jsxFrag */
import { h } from "preact";
import { Marked } from "markdown";
export const handler = {
async GET(req, ctx) {
const markdown = await Deno.readTextFile(`posts/${ctx.params.id}.md`);
const markup = Marked.parse(markdown);
const resp = await ctx.render({ markup }... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5099/1/output.mjs | JavaScript | /** @jsx h */ /** @jsxFrag */ import { h } from "preact";
import { Marked } from "markdown";
export const handler = {
async GET (req, ctx) {
const markdown = await Deno.readTextFile(`posts/${ctx.params.id}.md`);
const markup = Marked.parse(markdown);
const resp = await ctx.render({
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5099/2/input.js | JavaScript | /** @jsxRuntime typo */
<></>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5099/2/output.mjs | JavaScript | /** @jsxRuntime typo */ /*#__PURE__*/ React.createElement(React.Fragment, null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5099/empty-pragma/input.js | JavaScript | /** @jsxRuntime */
/** @jsxImportSource */
/** @jsxFrag */
/** @jsx */
<></>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-5099/empty-pragma/output.mjs | JavaScript | /** @jsxRuntime */ /** @jsxImportSource */ /** @jsxFrag */ /** @jsx */ /*#__PURE__*/ React.createElement(React.Fragment, null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6931/input.js | JavaScript | const f1 = <Component on={" "} />
const f2 = <Component on=" " /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6931/output.mjs | JavaScript | const f1 = /*#__PURE__*/ React.createElement(Component, {
on: " "
});
const f2 = /*#__PURE__*/ React.createElement(Component, {
on: " "
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6939/input.js | JavaScript | const test = <div key></div> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6939/output.mjs | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";
const test = /*#__PURE__*/ _jsx("div", {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6977/1/input.js | JavaScript | function Component(props) {
}
<Component x={...[1,2,3]} /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6977/1/output.mjs | JavaScript | function Component(props) {}
/*#__PURE__*/ React.createElement(Component, {
x: [
1,
2,
3
]
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6977/2/input.js | JavaScript | function Component(props) {
}
<Component x={...{a: x}} /> | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6977/2/output.mjs | JavaScript | function Component(props) {}
/*#__PURE__*/ React.createElement(Component, {
x: {
a: x
}
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6987/input.js | JavaScript | import { isValidElement, Children } from "react";
import * as styles from "./CheckmarkList.styles";
const CheckmarkList = ({ children}) => {
const listItems = () =>
Children.map(children, (child, index) => {
if (!isValidElement(child)) {
return null;
}
const { children: liChildren, cs... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/issue-6987/output.mjs | JavaScript | import { jsx as _jsx } from "@emotion/react/jsx-runtime";
import { createElement as _createElement } from "@emotion/react";
import { isValidElement, Children } from "react";
import * as styles from "./CheckmarkList.styles";
const CheckmarkList = ({ children })=>{
const listItems = ()=>Children.map(children, (child... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/.false-default-pragma-automatic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/.false-default-pragma-automatic-runtime/output.js | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";
_jsx("div", {
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/.false-pragma-option-automatic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/.true-pragma-option-automatic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/.unset-pragma-option-automatic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-default-pragma-classic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-default-pragma-classic-runtime/output.js | JavaScript | /*#__PURE__*/ React.createElement("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-pragma-comment-automatic-runtime/input.js | JavaScript | /* @jsx h */
<div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-pragma-comment-automatic-runtime/output.mjs | JavaScript | /* @jsx h */ /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
_jsx("div", {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-pragma-comment-classic-runtime/input.js | JavaScript | /* @jsx h */
<div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-pragma-comment-classic-runtime/output.js | JavaScript | /* @jsx h */ /*#__PURE__*/ h("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-pragma-option-classic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/false-pragma-option-classic-runtime/output.js | JavaScript | /*#__PURE__*/ h("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-default-pragma-automatic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-default-pragma-automatic-runtime/output.js | JavaScript | /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
_jsx("div", {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-default-pragma-classic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-default-pragma-classic-runtime/output.js | JavaScript | /*#__PURE__*/
React.createElement("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-pragma-comment-automatic-runtime/input.js | JavaScript | /* @jsx h */
<div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-pragma-comment-automatic-runtime/output.mjs | JavaScript | /* @jsx h */ /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
_jsx("div", {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-pragma-comment-classic-runtime/input.js | JavaScript | /* @jsx h */
<div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-pragma-comment-classic-runtime/output.js | JavaScript | /* @jsx h */
/*#__PURE__*/
h("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-pragma-option-classic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/true-pragma-option-classic-runtime/output.js | JavaScript | /*#__PURE__*/
h("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-default-pragma-automatic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-default-pragma-automatic-runtime/output.js | JavaScript | /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
_jsx("div", {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-default-pragma-classic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-default-pragma-classic-runtime/output.js | JavaScript | /*#__PURE__*/
React.createElement("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-pragma-comment-automatic-runtime/input.js | JavaScript | /* @jsx h */
<div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-pragma-comment-automatic-runtime/output.mjs | JavaScript | /* @jsx h */ /*#__PURE__*/ import { jsx as _jsx } from "react/jsx-runtime";
_jsx("div", {});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-pragma-comment-classic-runtime/input.js | JavaScript | /* @jsx h */
<div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-pragma-comment-classic-runtime/output.js | JavaScript | /* @jsx h */ /*#__PURE__*/ h("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-pragma-option-classic-runtime/input.js | JavaScript | <div />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/pure/unset-pragma-option-classic-runtime/output.js | JavaScript | /*#__PURE__*/ h("div", null);
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.arrow-functions/input.js | JavaScript | var foo = function () {
return () => <this />;
};
var bar = function () {
return () => <this.foo />;
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.arrow-functions/output.mjs | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";
var foo = function () {
var _this = this;
return function () {
return /*#__PURE__*/_jsx(_this, {});
};
};
var bar = function () {
var _this2 = this;
return function () {
return /*#__PURE__*/_jsx(_this2.foo, {});
};
};
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.jsx-with-retainlines-option/input.js | JavaScript | var div = <div>test</div>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.jsx-with-retainlines-option/output.mjs | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";var div = /*#__PURE__*/_jsx("div", { children: "test" });
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.optimisation.react.constant-elements/input.js | JavaScript | class App extends React.Component {
render() {
const navbarHeader = (
<div className="navbar-header">
<a className="navbar-brand" href="/">
<img src="/img/logo/logo-96x36.png" />
</a>
</div>
);
return (
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.optimisation.react.constant-elements/output.mjs | JavaScript | var _ref = <div className="navbar-header">
<a className="navbar-brand" href="/">
<img src="/img/logo/logo-96x36.png" />
</a>
</div>;
let App = /*#__PURE__*/function (_React$Component) {
babelHelpers.inherits(App, _React$Component);
var _super = babelHelpers.createSuper(App);
function Ap... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.should-add-quotes-es3/input.js | JavaScript | var es3 = <F aaa new const var default foo-bar />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.should-add-quotes-es3/output.mjs | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";
var es3 = /*#__PURE__*/_jsx(F, {
aaa: true,
"new": true,
"const": true,
"var": true,
"default": true,
"foo-bar": true
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.should-escape-xhtml-jsxattribute-babel-7/input.js | JavaScript | <div id="wôw" />;
<div id="\w" />;
<div id="w < w" />;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.should-escape-xhtml-jsxattribute-babel-7/output.mjs | JavaScript | import { jsx as _jsx } from "react/jsx-runtime";
/*#__PURE__*/
_jsx("div", {
id: "w\xF4w"
});
/*#__PURE__*/
_jsx("div", {
id: "\\w"
});
/*#__PURE__*/
_jsx("div", {
id: "w < w"
});
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_ecma_transforms_react/tests/jsx/fixture/react-automatic/.should-escape-xhtml-jsxtext-babel-7/input.js | JavaScript | <div>wow</div>;
<div>wôw</div>;
<div>w & w</div>;
<div>w & w</div>;
<div>w w</div>;
<div>this should not parse as unicode: \u00a0</div>;
<div>this should parse as nbsp: </div>;
<div>this should parse as unicode: {"\u00a0 "}</div>;
<div>w < w</div>;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.