Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make automatic runtime the default for JSX compilation
- Loading branch information
Showing
78 changed files
with
164 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
packages/babel-plugin-transform-classes/test/fixtures/regression/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"plugins": ["external-helpers", "proposal-class-properties"], | ||
"presets": ["env", "react"] | ||
"presets": [ | ||
"env", | ||
["react", { "runtime": "classic" }] | ||
] | ||
} |
5 changes: 4 additions & 1 deletion
5
...rm-function-name/test/fixtures/function-name/export-default-arrow-renaming-3/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"presets": ["env", "react"] | ||
"presets": [ | ||
"env", | ||
["react", { "runtime": "classic" }] | ||
] | ||
} |
5 changes: 4 additions & 1 deletion
5
...elements/test/fixtures/constant-elements/regression-node-type-export-default/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"plugins": ["transform-react-jsx", "transform-react-constant-elements"] | ||
"plugins": [ | ||
["transform-react-jsx", { "runtime": "classic" }], | ||
"transform-react-constant-elements" | ||
] | ||
} |
5 changes: 4 additions & 1 deletion
5
...onstant-elements/test/fixtures/constant-elements/regression-node-type-export/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"plugins": ["transform-react-jsx", "transform-react-constant-elements"] | ||
"plugins": [ | ||
["transform-react-jsx", { "runtime": "classic" }], | ||
"transform-react-constant-elements" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ugin-transform-react-jsx/test/fixtures/pure/false-default-pragma-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div />; |
5 changes: 5 additions & 0 deletions
5
...-transform-react-jsx/test/fixtures/pure/false-default-pragma-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pure": false, "runtime": "classic" }] | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...gin-transform-react-jsx/test/fixtures/pure/false-default-pragma-classic-runtime/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
React.createElement("div", null); |
4 changes: 3 additions & 1 deletion
4
packages/babel-plugin-transform-react-jsx/test/fixtures/pure/false-default-pragma/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
React.createElement("div", null); | ||
var _reactJsxRuntime = require("react/jsx-runtime"); | ||
|
||
_reactJsxRuntime.jsx("div", {}); |
3 changes: 3 additions & 0 deletions
3
...ugin-transform-react-jsx/test/fixtures/pure/false-pragma-comment-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* @jsx h */ | ||
|
||
<div />; |
5 changes: 5 additions & 0 deletions
5
...-transform-react-jsx/test/fixtures/pure/false-pragma-comment-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pure": false, "runtime": "classic" }] | ||
] | ||
} |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ges/babel-plugin-transform-react-jsx/test/fixtures/pure/false-pragma-comment/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pure": false }] | ||
] | ||
], | ||
"throws": "pragma and pragmaFrag cannot be set when runtime is automatic." | ||
} |
1 change: 1 addition & 0 deletions
1
...lugin-transform-react-jsx/test/fixtures/pure/false-pragma-option-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div />; |
5 changes: 5 additions & 0 deletions
5
...n-transform-react-jsx/test/fixtures/pure/false-pragma-option-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pragma": "h", "pure": false, "runtime": "classic" }] | ||
] | ||
} |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ages/babel-plugin-transform-react-jsx/test/fixtures/pure/false-pragma-option/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pragma": "h", "pure": false }] | ||
] | ||
], | ||
"throws": "pragma and pragmaFrag cannot be set when runtime is automatic." | ||
} |
1 change: 1 addition & 0 deletions
1
...lugin-transform-react-jsx/test/fixtures/pure/true-default-pragma-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div />; |
5 changes: 5 additions & 0 deletions
5
...n-transform-react-jsx/test/fixtures/pure/true-default-pragma-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pure": true, "runtime": "classic" }] | ||
] | ||
} |
2 changes: 2 additions & 0 deletions
2
...ugin-transform-react-jsx/test/fixtures/pure/true-default-pragma-classic-runtime/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/*#__PURE__*/ | ||
React.createElement("div", null); |
4 changes: 3 additions & 1 deletion
4
packages/babel-plugin-transform-react-jsx/test/fixtures/pure/true-default-pragma/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
var _reactJsxRuntime = require("react/jsx-runtime"); | ||
|
||
/*#__PURE__*/ | ||
React.createElement("div", null); | ||
_reactJsxRuntime.jsx("div", {}); |
3 changes: 3 additions & 0 deletions
3
...lugin-transform-react-jsx/test/fixtures/pure/true-pragma-comment-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* @jsx h */ | ||
|
||
<div />; |
5 changes: 5 additions & 0 deletions
5
...n-transform-react-jsx/test/fixtures/pure/true-pragma-comment-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pure": true, "runtime": "classic" }] | ||
] | ||
} |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ages/babel-plugin-transform-react-jsx/test/fixtures/pure/true-pragma-comment/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pure": true }] | ||
] | ||
], | ||
"throws": "pragma and pragmaFrag cannot be set when runtime is automatic." | ||
} |
1 change: 1 addition & 0 deletions
1
...plugin-transform-react-jsx/test/fixtures/pure/true-pragma-option-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div />; |
5 changes: 5 additions & 0 deletions
5
...in-transform-react-jsx/test/fixtures/pure/true-pragma-option-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pragma": "h", "pure": true, "runtime": "classic" }] | ||
] | ||
} |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
packages/babel-plugin-transform-react-jsx/test/fixtures/pure/true-pragma-option/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pragma": "h", "pure": true }] | ||
] | ||
], | ||
"throws": "pragma and pragmaFrag cannot be set when runtime is automatic." | ||
} |
1 change: 1 addition & 0 deletions
1
...ugin-transform-react-jsx/test/fixtures/pure/unset-default-pragma-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div />; |
5 changes: 5 additions & 0 deletions
5
...-transform-react-jsx/test/fixtures/pure/unset-default-pragma-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "runtime": "classic" }] | ||
] | ||
} |
2 changes: 2 additions & 0 deletions
2
...gin-transform-react-jsx/test/fixtures/pure/unset-default-pragma-classic-runtime/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/*#__PURE__*/ | ||
React.createElement("div", null); |
4 changes: 3 additions & 1 deletion
4
packages/babel-plugin-transform-react-jsx/test/fixtures/pure/unset-default-pragma/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
var _reactJsxRuntime = require("react/jsx-runtime"); | ||
|
||
/*#__PURE__*/ | ||
React.createElement("div", null); | ||
_reactJsxRuntime.jsx("div", {}); |
3 changes: 3 additions & 0 deletions
3
...ugin-transform-react-jsx/test/fixtures/pure/unset-pragma-comment-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* @jsx h */ | ||
|
||
<div />; |
5 changes: 5 additions & 0 deletions
5
...-transform-react-jsx/test/fixtures/pure/unset-pragma-comment-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "runtime": "classic" }] | ||
] | ||
} |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ges/babel-plugin-transform-react-jsx/test/fixtures/pure/unset-pragma-comment/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", {}] | ||
] | ||
], | ||
"throws": "pragma and pragmaFrag cannot be set when runtime is automatic." | ||
} |
1 change: 1 addition & 0 deletions
1
...lugin-transform-react-jsx/test/fixtures/pure/unset-pragma-option-classic-runtime/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div />; |
5 changes: 5 additions & 0 deletions
5
...n-transform-react-jsx/test/fixtures/pure/unset-pragma-option-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pragma": "h", "runtime": "classic" }] | ||
] | ||
} |
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...ages/babel-plugin-transform-react-jsx/test/fixtures/pure/unset-pragma-option/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "pragma": "h" }] | ||
] | ||
], | ||
"throws": "pragma and pragmaFrag cannot be set when runtime is automatic." | ||
} |
2 changes: 1 addition & 1 deletion
2
...ct-jsx/test/fixtures/react/honor-custom-jsx-comment-if-jsx-pragma-option-set/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": [["transform-react-jsx", { "pragma": "foo.bar" }]] | ||
"plugins": [["transform-react-jsx", { "pragma": "foo.bar", "runtime": "classic" }]] | ||
} |
2 changes: 1 addition & 1 deletion
2
...lugin-transform-react-jsx/test/fixtures/react/honor-custom-jsx-pragma-option/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"plugins": [["transform-react-jsx", { "pragma": "dom" }]] | ||
"plugins": [["transform-react-jsx", { "pragma": "dom", "runtime": "classic" }]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...s/babel-plugin-transform-react-jsx/test/fixtures/react/should-add-quotes-es3/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"plugins": ["transform-react-jsx", "transform-property-literals"] | ||
"plugins": [ | ||
["transform-react-jsx", { "runtime": "classic" }], | ||
"transform-property-literals" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"transform-react-jsx", | ||
{ | ||
"pragma": "h", | ||
"runtime": "classic", | ||
"throwIfNamespace": false | ||
} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"transform-react-jsx", | ||
{ | ||
"pragma": "h", | ||
"runtime": "classic", | ||
"throwIfNamespace": true | ||
} | ||
] | ||
|
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
...m-react-jsx/test/fixtures/regression/pragma-frag-set-default-classic-runtime/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"plugins": [ | ||
["transform-react-jsx", { "runtime": "classic" }] | ||
] | ||
} |
File renamed without changes.
5 changes: 0 additions & 5 deletions
5
...-plugin-transform-react-jsx/test/fixtures/regression/pragma-frag-set-default/options.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
...es/babel-plugin-transform-react-jsx/test/fixtures/runtime/defaults-to-automatic/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var _reactJsxRuntime = require("react/jsx-runtime"); | ||
|
||
var x = /*#__PURE__*/_reactJsxRuntime.jsx("div", { | ||
children: /*#__PURE__*/_reactJsxRuntime.jsx("span", {}) | ||
}); |
1 change: 0 additions & 1 deletion
1
...ages/babel-plugin-transform-react-jsx/test/fixtures/runtime/defaults-to-classic/output.js
This file was deleted.
Oops, something went wrong.
4 changes: 3 additions & 1 deletion
4
...l-plugin-transform-react-jsx/test/fixtures/transform-to-babel-extend/assignment/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
var div = /*#__PURE__*/React.createElement(Component, babelHelpers.extends({}, props, { | ||
var _reactJsxRuntime = require("react/jsx-runtime"); | ||
|
||
var div = /*#__PURE__*/_reactJsxRuntime.jsx(Component, babelHelpers.extends({}, props, { | ||
foo: "bar" | ||
})); |
2 changes: 1 addition & 1 deletion
2
...react-jsx/test/fixtures/transform-to-babel-extend/invalid-use-builtins-false/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["transform-react-jsx", { "useBuiltIns": false }]], | ||
"plugins": [["transform-react-jsx", { "runtime": "classic", "useBuiltIns": false }]], | ||
"rejects": "transform-react-jsx: Since \"useBuiltIns\" is removed in Babel 8, you must remove it from your config.\n- Babel 8 now transforms JSX spread to object spread. If you need to transpile object spread with\n`useBuiltIns: false`, you can use the following config\n{\n \"plugins\": [\n \"@babel/plugin-transform-react-jsx\",\n [\"@babel/plugin-proposal-object-rest-spread\", { \"loose\": true, \"useBuiltIns\": false }]\n ]\n}" | ||
} |
4 changes: 3 additions & 1 deletion
4
...-plugin-transform-react-jsx/test/fixtures/transform-to-object-assign/assignment/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
var div = /*#__PURE__*/React.createElement(Component, Object.assign({}, props, { | ||
var _reactJsxRuntime = require("react/jsx-runtime"); | ||
|
||
var div = /*#__PURE__*/_reactJsxRuntime.jsx(Component, Object.assign({}, props, { | ||
foo: "bar" | ||
})); |
2 changes: 1 addition & 1 deletion
2
...react-jsx/test/fixtures/transform-to-object-assign/invalid-use-builtins-true/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["transform-react-jsx", { "useBuiltIns": true }]], | ||
"plugins": [["transform-react-jsx", { "runtime": "classic", "useBuiltIns": true }]], | ||
"rejects": "transform-react-jsx: Since \"useBuiltIns\" is removed in Babel 8, you must remove it from your config.\n- Babel 8 now transforms JSX spread to object spread. If you need to transpile object spread with\n`useBuiltIns: true`, you can use the following config\n{\n \"plugins\": [\n \"@babel/plugin-transform-react-jsx\",\n [\"@babel/plugin-proposal-object-rest-spread\", { \"loose\": true, \"useBuiltIns\": true }]\n ]\n}" | ||
} |
2 changes: 1 addition & 1 deletion
2
...-react-jsx/test/fixtures/transform-to-object-assign/invalid-use-spread-false/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["transform-react-jsx", { "useSpread": false }]], | ||
"plugins": [["transform-react-jsx", { "runtime": "classic", "useSpread": false }]], | ||
"rejects": "transform-react-jsx: Since Babel 8, an inline object with spread elements is always used, and the \"useSpread\" option is no longer available. Please remove it from your config." | ||
} |
2 changes: 1 addition & 1 deletion
2
...m-react-jsx/test/fixtures/transform-to-object-assign/invalid-use-spread-true/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": [["transform-react-jsx", { "useSpread": true }]], | ||
"plugins": [["transform-react-jsx", { "runtime": "classic", "useSpread": true }]], | ||
"rejects": "transform-react-jsx: Since Babel 8, an inline object with spread elements is always used, and the \"useSpread\" option is no longer available. Please remove it from your config." | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/babel-plugin-transform-regenerator/test/fixtures/scope/8525/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"presets": ["react"], | ||
"presets": [ | ||
["react", { "runtime": "classic" }] | ||
], | ||
"plugins": ["transform-regenerator"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/babel-preset-react/test/fixtures/preset-options/development-windows/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"presets": [["react", { "development": true }]], | ||
"presets": [["react", { "development": true, "runtime": "classic" }]], | ||
"os": ["win32"] | ||
} |
Oops, something went wrong.