Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 953 Bytes

README.md

File metadata and controls

68 lines (44 loc) · 953 Bytes

Prepack-core

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.

Use Prepack-core

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

Update

If you want coding with source:

> yarn watch

validate changes:

> yarn validate

Or bundle a standalone repl-cli:

> yarn build-bundle

License

The Prepack-core is fork of Prepack.

Prepack is BSD-licensed. We also provide an additional patent grant.