@furryr/typescript-runtime 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -109,8 +109,8 @@ Classic JSX example:
|
|
|
109
109
|
{
|
|
110
110
|
"compilerOptions": {
|
|
111
111
|
"jsx": "react",
|
|
112
|
-
"jsxFactory": "
|
|
113
|
-
"jsxFragmentFactory": "
|
|
112
|
+
"jsxFactory": "window.jsx",
|
|
113
|
+
"jsxFragmentFactory": "window.Fragment"
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
```
|
|
@@ -123,7 +123,8 @@ Then use `type="text/typescript-tsx"` or a `.tsx` file:
|
|
|
123
123
|
</script>
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
`typescript-runtime` does not provide a JSX runtime. You must provide `
|
|
126
|
+
`typescript-runtime` does not provide a JSX runtime. You must provide `window.jsx`, React, or another runtime yourself.
|
|
127
|
+
For automatic JSX (`"jsx": "react-jsx"`), import `jsx`/`jsxs` from your runtime in your own source; `typescript-runtime` does not inject a JSX runtime import.
|
|
127
128
|
|
|
128
129
|
## Source Maps
|
|
129
130
|
|