-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
output.mjs
39 lines (28 loc) · 1.15 KB
/
output.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { jsxStylePropertyString as _jsxStylePropertyString2 } from "#core/dom/jsx/style-property-string";
import { jsxStylePropertyString as _jsxStylePropertyString } from "#core/dom/jsx/style-property-string";
import * as jsx from 'ANYWHERE_LEADING_TO/core/dom/jsx';
const randomObjectExpressionsAreUnmodified = () => ({
background,
color: null
});
const nonObjectExpressionsAreUnmodified = () => <div>
<div style={foo} />
<div style={foo ? 'foo: bar;' : null} />
</div>;
const red = 'red';
const otherAttributesAreUnmodified = () => <div foo={{
color: null,
'background-color': red,
backgroundImage,
opacity: 0,
width: 100
}} />;
const modified = () => <div style={"background-color:red;" + _jsxStylePropertyString("background-image", backgroundImage, true) + "opacity:0;" + "width:100px;"} />;
const emptyStringValueIsRemoved = () => <div style={""} />;
let dynamic = 0;
function modifyDynamicValue() {
dynamic = 1;
}
let backgroundColor = 'blue';
const constants = () => <div style={"background-color:blue;" + "width:100px;" + "color:white;" + _jsxStylePropertyString2("opacity", dynamic)} />;
const empty = () => <div style={""} />;