nuno
nuno
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
a re-write of the solid/jsx plugin with JS or TS in away w could load using wasm without babel would make that easier
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
the hard dependency on babel make the solid or the jsx compilation hard to re-use by other tools
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
another way could be plugin that instead of dependency on babel, use an agnostic AST struture that could be used by babel and SWC, or others
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
not sure how is is to run node scripts with node modules from rust, more precisely on a SWC plugin
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
but it seems a bit complicated because we have to run the babel on a js runtime from a rust runtime. So maybe parse the SWC AST to json and make js programs to run using node that converts that json SWC AST to Babel and transforms
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
it may not be hard to convert one AST to the other and rum the babel transformation
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
provide a babel AST to the babel plugin may do the job.
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
@Alex Lohr maybe a swc plugin on repo that get the jsx tranform plugin (babel) and compiles that to wasm and the swc can use it. I think swc loads code to a SWC AST and passes that to the transformer to generate the output. because that AST is an object on rust runtime it not that easy to interop with wasm or other language, it may need to some binding to access that AST, but even with access to that AST is not the input the jsx plugin is expecting, Babel has other AST that may not be compatible with the SWC, so is not just the languages.
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
I get this error HarmonyLinkingWarning: export 'jsxDEV' (imported as '_jsxDEV') was not found in 'solid-js/jsx-dev-runtime'
30 replies
SSolidJS
Created by walid on 7/30/2023 in #support
SWC Support for SolidJS
I see a good use of this on other bundler that can use SWC, like webpack or RsPack. I tried to use the same config with RsPack but seems like I am mssing something
30 replies
SSolidJS
Created by Mike F on 1/31/2024 in #support
Vitest support
I think is missing something or a bug on vitest related with environment imports
14 replies
SSolidJS
Created by Mike F on 1/31/2024 in #support
Vitest support
also, is supposed to run test on ssr when I am developing on web only? why imports are mentioning __vite_ssr_import_xxx
14 replies
SSolidJS
Created by Mike F on 1/31/2024 in #support
Vitest support
I still don't know what to about You appear to have multiple instances of Solid. This can lead to unexpected behavior."
14 replies
SSolidJS
Created by Mike F on 1/31/2024 in #support
Vitest support
sometimes I think solids templates and examples are to simply and when added other library it doesnt works as on the example> I have tried many configurations on example and get all the time "You appear to have multiple instances of Solid. This can lead to unexpected behavior. computations created outside a createRoot or render will never be disposed" some imports on vitest are ___vite_ssr_importxxx. so not sure if some kind of ssr issue, I also dont ahve error when I inlcude <Suspense on my code, it seems like Effects is null
14 replies