FredKSchott / create-snowpack-app

The all-in-one app template for Snowpack. [moved]
https://www.snowpack.dev
Other
727 stars 96 forks source link

Support `h` as the JSX pragma consistently throughout `app-scripts-preact` #138

Closed bencates closed 4 years ago

bencates commented 4 years ago

Adding h as the pragma to the base tsconfigfile allows typescript to find and use Preact's JSX type definitons instead of the nonexistent React bindings.

Adding it to Jest's babel configuration prevents it from mistakenly stripping the import of h as unused when reading a TSX file during testing.

FredKSchott commented 4 years ago

Thanks!