31 lines
1 KiB
TypeScript
31 lines
1 KiB
TypeScript
//// [jsxImportSourceNonPragmaComment.tsx]
|
|
/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */
|
|
/** @jsxImportSource @emotion/react */
|
|
import { css } from "@emotion/react";
|
|
|
|
export default function Component() {
|
|
return (
|
|
<input
|
|
css={css`
|
|
color: red;
|
|
`}
|
|
/>
|
|
);
|
|
}
|
|
|
|
//// [jsxImportSourceNonPragmaComment.jsx]
|
|
"use strict";
|
|
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
return cooked;
|
|
};
|
|
exports.__esModule = true;
|
|
/* eslint-disable react/react-in-jsx-scope -- Unaware of @jsxImportSource */
|
|
/** @jsxImportSource @emotion/react */
|
|
var react_1 = require("@emotion/react");
|
|
function Component() {
|
|
return (<input css={(0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: red;\n "], ["\n color: red;\n "])))}/>);
|
|
}
|
|
exports["default"] = Component;
|
|
var templateObject_1;
|