Search code examples
uno-platform

Uno-Platform: How to embed JavaScript libraries in Uno-Platform Library?


TL,DR: How do I embed JavaScript into an Uno-Platform Cross Platform Library project?

BACKGROUND

Below are some great resources on how to embed a JavaScript library into a WASM platform project of an Uno Platform Application (not a Library):

QUESTION

However, the above does not address, nor have I been able to find anything on, how to do this within an Uno Platform Library. How do I embed JavaScript into an Uno-Platform Cross Platform Library project?


Solution

  • This link shows how to do it - https://platform.uno/blog/how-to-embed-javascript-components-in-c-built-uno-webassembly-web-applications/

    It has two examples on using a date/time picker control Flartpickr as well as syntax visualizer PrismJS.