mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
670 B
TypeScript
26 lines
670 B
TypeScript
//// [tests/cases/compiler/checkJsxNotSetError.ts] ////
|
|
|
|
//// [foo.jsx]
|
|
const Foo = () => (
|
|
<div>foo</div>
|
|
);
|
|
export default Foo;
|
|
|
|
//// [bar.jsx]
|
|
import Foo from '/foo';
|
|
const a = <Foo />
|
|
|
|
//// [foo.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const Foo = () => (<div>foo</div>);
|
|
exports.default = Foo;
|
|
//// [bar.js]
|
|
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const foo_1 = __importDefault(require("/foo"));
|
|
const a = <foo_1.default />;
|