Provide a sandbox to PDF.js.
Run:
node build.js --compile --output my_output_dir
it will create a Docker image with emsdk and then run it. The generated quickjs-eval.js
will be in my_output_dir
.
In order to update quickjs to a specific revision, change the commit hash in Dockerfile
and then run:
node build.js --create
to create a new docker image and then
node build.js --compile --output my_output_dir
to compile. The short version is:
node build.js -Cco my_output_dir
The code is released under MIT license.