Pack JS code into a single bundle fast & easy.
We want sub-1000ms bundle time and sub-100ms incremental rebundle time for medium-sized applications (around 1000 modules). We are finally there!
You can install via npm (or yarn):
% npm install fpack
To produce a development bundle:
% fpack --development ./index.js
Please note, bundling in production mode is temporarily disabled. Always
--development flag for now.
uglify-js packages must be
fpack --help to see the available invocation options:
Make sure you have
esy (at least
0.2.8 version) installed:
npm install -g email@example.com
Now install dependencies & build everything:
Then to produce the executable:
To run tests:
make test make test-integration
To test compiled executables prepend with
esy x fpack
As merlin and others live inside sandboxed environment you'd want to execute your editor from inside it:
esy vim esy nvim esy vscode esy sublime
Alternatively you can enter into sandboxed shell:
And execute commands from there.
The NPM package is built on every commit to the
master branch by the
Microsoft Azure Pipelines (see Artifacts/fpack). Publishing it on npmjs.org
remains manual for now.