Skip to content

WASM build of Yoga, targeting the web worker runtime.

License

Notifications You must be signed in to change notification settings

JackCA/yoga-wasm-web

 
 

Repository files navigation

yoga-wasm-web

Yoga but in WebAssembly. This is an opinionated fork from pinqy520/yoga-layout-wasm with the following changes:

  • Stick to bdc37b07971b645718d2d7400afa19d47056ef0f of Yoga that matches the yoga-layout-prebuilt package.
  • Fix missing YGMeasureMode binding.
  • Fix missing YGUnit binding.
  • Set flag DYNAMIC_EXECUTION=0 for emcc to remove eval and Function executions.
  • Set flag TEXTDECODER=0.
  • Force the ENVIRONMENT to be web.
  • Add pre.js to set document as this.
  • Replace Rollup with esbuild for bundling.
  • Remove the asm.js build.
  • Enable LTO.
  • Enable SIMD128.

About

WASM build of Yoga, targeting the web worker runtime.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 66.2%
  • JavaScript 31.4%
  • Makefile 2.4%