Skip to content

Instantly share code, notes, and snippets.

@argv-minus-one
Created January 31, 2019 09:52
Show Gist options
  • Save argv-minus-one/8d65e1f38ffacbea76621320d4f1d228 to your computer and use it in GitHub Desktop.
Save argv-minus-one/8d65e1f38ffacbea76621320d4f1d228 to your computer and use it in GitHub Desktop.
TypeScript chokes on glixlur/jsx-dom if "module":"es6"
/** @jsx jsxDom.createElement */
import * as jsxDom from "jsx-dom";
let e = <div>Hello, world!</div>;
document.documentElement.appendChild(e);
{
"private": true,
"devDependencies": {
"typescript": "^3.2.4"
},
"dependencies": {
"jsx-dom": "^6.2.1"
}
}
{
"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