Library compilation
In order to compile MapLibre Native Core to a Wasm library, it's necessary to handle all the configuration of emscripten, as well as fill in the gaps around e.g. networking that the frameworks in the App compilation approach takes care of.
The finished Wasm library will have a JavaScript API and TypeScript declarations, so that it can be consumed either by:
- Embeding it as the web target in Flutter for Web and React Native for Web/Expo
- Calling it directly from React/Vue/Svelte/vanillajs or use through wrapper libraries.
The work is tracked in this Ticket.