-
-
Save argv-minus-one/8d65e1f38ffacbea76621320d4f1d228 to your computer and use it in GitHub Desktop.
TypeScript chokes on glixlur/jsx-dom if "module":"es6"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx jsxDom.createElement */ | |
import * as jsxDom from "jsx-dom"; | |
let e = <div>Hello, world!</div>; | |
document.documentElement.appendChild(e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"devDependencies": { | |
"typescript": "^3.2.4" | |
}, | |
"dependencies": { | |
"jsx-dom": "^6.2.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"files": ["index.tsx"], | |
"compilerOptions": { | |
"strict": true, | |
"sourceMap": true, | |
"charset": "UTF-8", | |
"target": "es6", | |
"module": "es6", | |
"lib": ["es6", "dom", "dom.iterable"], | |
"jsx": "react" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment