Revert "add .js extension to react runtime for JSX transform" (#12213)

This commit is contained in:
Nicolò Ribaudo
2020-10-19 19:50:43 +02:00
committed by GitHub
parent ed498a772b
commit 02fc9e835c
70 changed files with 122 additions and 122 deletions

View File

@@ -1,7 +1,7 @@
import { createElement as _createElement } from "react";
import { jsxs as _jsxs } from "react/jsx-runtime.js";
import { jsx as _jsx } from "react/jsx-runtime.js";
import { Fragment as _Fragment } from "react/jsx-runtime.js";
import { jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { Fragment as _Fragment } from "react/jsx-runtime";
var x = /*#__PURE__*/_jsx(_Fragment, {
children: /*#__PURE__*/_jsxs("div", {

View File

@@ -1,12 +1,12 @@
var _react = require("react");
var _reactJsxRuntimeJs = require("react/jsx-runtime.js");
var _reactJsxRuntime = require("react/jsx-runtime");
var x = /*#__PURE__*/_reactJsxRuntimeJs.jsx(_reactJsxRuntimeJs.Fragment, {
children: /*#__PURE__*/_reactJsxRuntimeJs.jsxs("div", {
children: [/*#__PURE__*/_reactJsxRuntimeJs.jsx("div", {}, "1"), /*#__PURE__*/_reactJsxRuntimeJs.jsx("div", {
var x = /*#__PURE__*/_reactJsxRuntime.jsx(_reactJsxRuntime.Fragment, {
children: /*#__PURE__*/_reactJsxRuntime.jsxs("div", {
children: [/*#__PURE__*/_reactJsxRuntime.jsx("div", {}, "1"), /*#__PURE__*/_reactJsxRuntime.jsx("div", {
meow: "wolf"
}, "2"), /*#__PURE__*/_reactJsxRuntimeJs.jsx("div", {}, "3"), /*#__PURE__*/_react.createElement("div", { ...props,
}, "2"), /*#__PURE__*/_reactJsxRuntime.jsx("div", {}, "3"), /*#__PURE__*/_react.createElement("div", { ...props,
key: "4"
})]
})

View File

@@ -1,4 +1,4 @@
import { jsx as _jsx2 } from "react/jsx-runtime.js";
import { jsx as _jsx2 } from "react/jsx-runtime";
const Bar = () => {
const Foo = () => {

View File

@@ -1,4 +1,4 @@
var _reactJsxRuntimeJs = require("react/jsx-runtime.js");
var _reactJsxRuntime = require("react/jsx-runtime");
const Bar = () => {
const Foo = () => {
@@ -15,11 +15,11 @@ const Bar = () => {
var jsx = 1;
var _jsx = 2;
return /*#__PURE__*/_reactJsxRuntimeJs.jsx("div", {});
return /*#__PURE__*/_reactJsxRuntime.jsx("div", {});
}
;
return /*#__PURE__*/_reactJsxRuntimeJs.jsx("span", {});
return /*#__PURE__*/_reactJsxRuntime.jsx("span", {});
};
};
};

View File

@@ -1,4 +1,4 @@
import { jsx as _jsx } from "baz/jsx-runtime.js";
import { jsx as _jsx } from "baz/jsx-runtime";
/** @jsxImportSource baz */
var x = _jsx("div", {

View File

@@ -1,4 +1,4 @@
import { jsx as _jsx } from "foo/jsx-runtime.js";
import { jsx as _jsx } from "foo/jsx-runtime";
var x = _jsx("div", {
children: _jsx("span", {})

View File

@@ -1,6 +1,6 @@
import { createElement as _createElement } from "react";
import { jsx as _jsx } from "react/jsx-runtime.js";
import { jsxs as _jsxs } from "react/jsx-runtime.js";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
import * as react from "react";
var y = react.createElement("div", {
foo: 1