swc/tests/tsc-references/jsx/tsxElementResolutionx/input.tsx/es2015.1.normal/output.js

22 lines
590 B
JavaScript

class foundFirst {
}
class Other {
}
var Dotted;
(function(Dotted) {
class Name {
}
Dotted.Name = Name;
})(Dotted || (Dotted = {
}));
// Should find the intrinsic element, not the class element
var a = /*#__PURE__*/ React.createElement("foundFirst", {
x: "hello"
});
var b = /*#__PURE__*/ React.createElement("string_named", null);
// TODO: This should not be a parse error (should
// parse a property name here, not identifier)
// var c = <var />;
var d = /*#__PURE__*/ React.createElement(Other, null);
var e = /*#__PURE__*/ React.createElement(Dotted.Name, null);