Mateusz Burzyński

Results 1531 comments of Mateusz Burzyński

I certainly don't want to rush things on Babel - I genuinely believe that the proposed solution is slightly better than what got shipped. It's also not a rush idea...

Ive fixed the createElement not being autoimported from jsxImportSource module. So that was a big one and its already the same for Babel and TS. The other discrepancy is that...

> @gaearon proposes to make it easy to use both runtimes in the same file at different times, depending on the environment. This is IMHO quite a convoluted use case....

@weswigham this is not quite accurate. [One bug I've fixed](https://github.com/microsoft/TypeScript/pull/41151) has indeed fixed a compatibility issue with Babel but [the current PR that I'm working on](https://github.com/microsoft/TypeScript/pull/41476) is focused on JSX...

@hulkish I'm not sure what's the point of using combining those 2 plugins together. One targets development mode (jsx-self) and one targets production mode (constant-elements). By using `jsx-self` and therefore...

> We could throw if context.env() is not what is expected or undefined in the plugins themselves? Or just warn context.env? is this available somewhere? I think a helpful warning,...

This is a current limitation that we are facing. TS can't infer this situation correctly: [TS playground](https://www.typescriptlang.org/play?ts=5.5.0-dev.20240331&ssl=19&ssc=4&pln=1&pc=1#code/JYWwDg9gTgLgBAbzgZwKYwK5gDR1QOwEcNUSBBAYxmAn2VwENllgBzfOAXzgDMoIQcAEQAPZDAYxUQgNxwA9PLgwAnmFTIAXHACsAOgCcegIwAoU2kxgAFAlNw4DKjTra7DhzwgRt1gJRwALwAfIic2PYeAEYMUNoExKSolNS0yNa2eEQkJFwBIYiRHlmJJJmq6tpCXhBCeTJFeREO4aacfg0W6Fi2kU6proXFNdpMLOwZ+aG27X7N0bHx2UkpLumZCTmoeUGh7sUlW+VqqFU1de0Nxe3zrZemQA)

In a sense, this is a duplicate of https://github.com/statelyai/xstate/issues/4485

I wonder if you had a chance to take a look at https://github.com/statelyai/xstate/pull/4638 . How would you compare both approaches?

Tests should be added here - as part of this PR. I'm not sure what do you mean by schematics. > Also is there anything I can do about the...