Prepack-core isn't prepack:
- no react and jsx
- no bundler
- no optimizer
- no transformer
The core is interpreter base ECMAScript 2016.
Prepack: See the official prepack.io website for an introduction and an interactive REPL playground.
Install the CLI via npm,
# install dependencies
> npm install
# build interpreter
> yarn build
#(OR)
> npm run build-repl
# enter repl-cli
> yarn repl
#(OR)
> npm run repl
# run .js file
> yarn repl ./test.js
#(OR)
> npm run repl ./test.js
#(OR)
> node ./bin/prepack-repl.js ./test.js
If you want coding with source:
> yarn watch
validate changes:
> yarn validate
Or bundle a standalone repl-cli:
> yarn build-bundle
The Prepack-core is fork of Prepack.
Prepack is BSD-licensed. We also provide an additional patent grant.