[WASM] How to create a UNO WASM library? #10647
-
I'm trying to create a UNO WASM library but failed. Here is what I did:
Compiling fails, since the UNO WASM references could not be found. Repo attached What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Thanks for the report. When posting about build errors, post the build errors as well. Building a WebAssembly compatible library is like creating a normal library and it only needs The bootstrapper packages cannot be used here and are not needed. |
Beta Was this translation helpful? Give feedback.
-
@jeromelaban sorry, but we're not done yet. I applied the changes from above to my 'real world' library project - which references a
(binlog attached below) Would you know what's going wrong now? |
Beta Was this translation helpful? Give feedback.
Thanks for the report. When posting about build errors, post the build errors as well.
Building a WebAssembly compatible library is like creating a normal library and it only needs
Uno.WinUI
, and if you need to use Javascript interop, you can includeUno.Foundation.Runtime.WebAssembly
.The bootstrapper packages cannot be used here and are not needed.