question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support JSX pragmas in tsconfig.json

See original GitHub issue

Amazing project!

Would be cool to have a general ES6/babel template like in https://codesandbox.io. This is especially useful for using JSX with other virtual dom libs like preact. I tried the /* @jsx h */ at the top of the module (with the react template) but it doesn’t work. Actual workaround is to redefine React.createElement but I think supporting a more general ES6/babel env out of the box is a game changer.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mjyccommented, Sep 18, 2018

Another thanks for building Stackblitz and would love to see this feature implemented.

0reactions
purplem1lkcommented, Apr 30, 2021

Thank you for your patience - We are launching new core technology into beta next month that should resolve this issue so this will be closed accordingly. If this issue persists, feel free to tag me or ask to reopen this issue with screenshots of the error. Thank you! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

TSConfig Option: jsxImportSource - TypeScript
Declares the module specifier to be used for importing the jsx and jsxs factory functions when using jsx as "react-jsx" or "react-jsxdev" which...
Read more >
React - Parcel
Parcel supports JSX automatically when it detects you are using React. ... option in a tsconfig.json or jsconfig.json so that Emotion's JSX pragma...
Read more >
babel/plugin-transform-typescript
This plugin adds support for the types syntax used by the TypeScript ... using the pragma option of the @babel/plugin-transform-react-jsx package.
Read more >
@herp-inc/snabbdom-jsx - npm
Yet another JSX pragma for Snabbdom. Latest version: 0.9.0, last published: 4 months ... Add the following options to your tsconfig.json :.
Read more >
Vanilla JSX - Medium
Before jumping into the Pragma creation, we need to learn how to parse JSX. For small modern project without old browsers support, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found