EXPO 37: expo how to export Hermes jsbundle

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): Android

When I hosting app on my own site, how to run expo export cli command to export hemes bytecode jsbundle instead of generic js files?

All standalone builds and client apps are bundled with JSC, so bytecode won’t work there. We are planning to support it in the future, currently, the biggest problem is rewriting expo-gl-cpp
, which relies on direct calls to JSC API. If you are not using expo-gl you could make it work by ejecting, but I’m not sure if OTA updates will work with binary data.

To answer your actual question
Hermes bundle is generated directly from js bundle(not from source files), so you could just run appropriate hermes command that would generate that for you, that command is provided inside package hermes-engine - npm , and should be in your node_modules

Thank you for your information. expo-gl-cpp is not necessary for me, so I’ll add a step to convert the Js bundle to Hermes bytecode and take a try.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.