-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Telefunc with SWC #30
Comments
Neat 👍 |
@Aslemammad es-module-lexer has a wasm build. So I think we can use it to write a SWC plugin? Looks like SWC supports Wasm. When using Very much looking forward to having first class support for Next 13's Let me know what you think! (Hope things are well on your side 😊.) |
I'd like to deliver this, but now, there's no way to identify which phase of the bundling we are in (Server or Client) in SWC/Next since we need this to differentiate between different telefunc builds. |
Good point. I'll have a look at it. |
Looking at current SWC plugins (swc-project/plugins) I couldn't find any client/server discrimination so far. I wonder what get_context() returns? Maybe the info whether the code is being transformed for the client/server is in there. There is also get_experimental_context() and get_raw_experimental_context() but I don't know what the difference with Also: swc-project/plugins#102. |
Idea: Next 12.2
Just an issue for creating the plugin, I'm going to work on this!
The text was updated successfully, but these errors were encountered: