[babel 8] Output minimal strings by default (#12675)
Co-authored-by: Justin Ridgewell <justin@ridgewell.name> Co-authored-by: Justin Ridgewell <jridgewell@google.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<div id="wôw" />;
|
||||
<div id="\w" />;
|
||||
<div id="w < w" />;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"BABEL_8_BREAKING": false
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
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"
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"BABEL_8_BREAKING": true
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
id: "w\xF4w"
|
||||
id: "wôw"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<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>;
|
||||
@@ -0,0 +1 @@
|
||||
{ "BABEL_8_BREAKING": false }
|
||||
@@ -0,0 +1,47 @@
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "wow"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "w\xF4w"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "w & w"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "w & w"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "w \xA0 w"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "this should not parse as unicode: \\u00a0"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "this should parse as nbsp: \xA0 "
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsxs("div", {
|
||||
children: ["this should parse as unicode: ", '\u00a0 ']
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "w < w"
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
{ "BABEL_8_BREAKING": true }
|
||||
@@ -8,7 +8,7 @@ _jsx("div", {
|
||||
|
||||
/*#__PURE__*/
|
||||
_jsx("div", {
|
||||
children: "w\xF4w"
|
||||
children: "wôw"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<div id="wôw" />;
|
||||
<div id="\w" />;
|
||||
<div id="w < w" />;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"BABEL_8_BREAKING": false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", {
|
||||
id: "w\xF4w"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", {
|
||||
id: "\\w"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", {
|
||||
id: "w < w"
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"BABEL_8_BREAKING": true
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", {
|
||||
id: "w\xF4w"
|
||||
id: "wôw"
|
||||
});
|
||||
|
||||
/*#__PURE__*/
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<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>;
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"BABEL_8_BREAKING": false
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "wow");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "w\xF4w");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "w & w");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "w & w");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "w \xA0 w");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "this should not parse as unicode: \\u00a0");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "this should parse as nbsp: \xA0 ");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "this should parse as unicode: ", '\u00a0 ');
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "w < w");
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"BABEL_8_BREAKING": true
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
React.createElement("div", null, "wow");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "w\xF4w");
|
||||
React.createElement("div", null, "wôw");
|
||||
|
||||
/*#__PURE__*/
|
||||
React.createElement("div", null, "w & w");
|
||||
|
||||
Reference in New Issue
Block a user