Skip to content
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

Add wasmJs target [WIP] #724

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

luca992
Copy link
Contributor

@luca992 luca992 commented May 27, 2024

This isn't quite working yet, but started adding support for wasmJs. It will build, but generated code for wasmJs doesn't work because wasmJs only supports calling js code in top level functions:

Calls to 'js(code)' should be a single expression inside a top-level function body or a property initializer in Kotlin/Wasm.

Also, requires an updated moko-graphics with wasmJs added

It could also probably be cleaned up to share more code with the js target.

In wasmJs generated code have to handle:

Calls to 'js(code)' should be a single expression inside a top-level function body or a property initializer in Kotlin/Wasm.
@Alex009 Alex009 added this to the 0.25.0 milestone May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants