Fixes #12467 This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
17 lines
287 B
TypeScript
17 lines
287 B
TypeScript
//@module: commonjs
|
|
//@target: es5
|
|
//@jsx: react
|
|
//@jsxFactory: skate.h
|
|
//@noEmit: false
|
|
|
|
// @filename: index.tsx
|
|
import "./jsx";
|
|
|
|
var skate: any;
|
|
const React = { createElement: skate.h };
|
|
|
|
class Component {
|
|
renderCallback() {
|
|
return <div>test</div>;
|
|
}
|
|
}; |