Open DuncanMacWeb opened 5 years ago
https://github.com/rickbutton/yoga-wasm is promising but (still) not working with react-pdf
Is the emscripten option -s ALLOW_MEMORY_GROWTH not true for these asm/wasm compilations?
+1 for this idea. asm.js is a dying technology with little support and no development.
An other to test, maybe it works with react-pdf ? https://github.com/pinqy520/yoga-layout-wasm
It would be good if yoga-layout-prebuilt could load yoga-layout in WebAssembly format in environments which support it (Node 8+ and 80% of browsers). Our experiments suggest it would be 200–250K smaller and correspondingly faster. @vadimdemedes have you investigated this at all?
Relates to: diegomura/react-pdf#364