Sami Jaber
Sami Jaber
We would love external contributions on this! The types have quite a bit of documentation: all that's needed is to copy-paste that info from: https://github.com/BuilderIO/mitosis/blob/801894b99aeefa12986185898cf310ed3376447e/packages/core/src/types/config.ts#L16-L56 into: https://github.com/BuilderIO/mitosis/blob/801894b99aeefa12986185898cf310ed3376447e/docs/configuration.md This is a...
I think this impacts both `core` and our `cli` projects, but I am not entirely sure.
I corrected a mistake in my description: the reference files are actually the _first version_ of the generated output. In the case of Mitosis's `build` command, there are sometimes additional...
Yeah agreed, that's what I've been thinking throughout this: Get rid of it completely, add an `output: 'ts' | 'js'` flag in the mitosis config. Only output 1 thing based...
Lines up with our separate issues around adding TS output to the CLI commands. The generators currently are starting to output TS, but the CLI has not caught up: it...
@Harkunwar Awesome. Feel free to reach out in our Discord with any questions/issues you may have: this is a big project and there'll likely be complications 😅
@Harkunwar We have been feeling the need for better, more comprehensive integration testing for Mitosis. One of the primary ways we want to accomplish that is via a tool like...
@CKGrafico There is absolutely nothing preventing someone from using a (framework-agnostic) library with their Mitosis components! That should work just fine 😄
Similarly, comments within JSX cause issues: [see](https://mitosis.builder.io/?outputTab=react&code=export+default+function+MyBasicComponent%28%29+%7B%0A++return+%28%0A++++%3Cdiv%0A++++++%2F%2F+%40ts-ignore%0A++++++foo%3D%7B%27bar%27%7D%0A++++%3E%0A++++++Hello%21+I+can+run+in+React%2C+Vue%2C+Solid%2C+or+Liquid%21%0A++++%3C%2Fdiv%3E%0A++%29%3B%0A%7D%0A) They end up making it to the final version of the code. The parser thinks that `div //@tsignore` is the name of a...
Technical information: We already have a list of all HTML elements: https://github.com/BuilderIO/mitosis/blob/b8d083ca78bdaec332745d2a0f8c0890335072c4/packages/core/src/constants/html_tags.ts#L1 We want to go to the `blockToReact` function, and identify blocks that are native HTML elements, and rename...