程式語言 - JavaScript - 如何透過Hermes產生Bundle檔案



參考資訊:
https://github.com/facebook/hermes
https://github.com/facebook/hermes/issues/186

main.js

alert('Hello, world!');

產生Bundle

$ hermes -emit-binary -out main.bundle main.js -output-source-map -O
$ file main.bundle
    main.bundle: Hermes JavaScript bytecode, version 96