ANN: Fastpack@0.7.0 (Windows support!)


#1

Hi all,

In case you haven’t heard about it before - Fastpack is a JavaScript bundler written in native ReasonML. The main goal of the project is to improve the speed of producing the final bundle (highly inspired by the OCaml/Reason build tools: dune, bsb). So far we seem to be on the way (<1000ms cold start and <100ms update on a single module change), but there is still a plenty of work ahead!

This release features the latest big update - :fire: support of Windows :fire:. Before that it only worked on OS X/Linux. The big share of the successful Windows build and overall workflow support goes to esy!
Another important update is the ability to automatically split code using the import() expression.

To install it:

$ npm i fastpack

or

$ yarn add fastpack

If you have any questions, feedback, or just want to get your hands dirty hacking on some native ReasonML code, welcome to our Discord channel!


#2

Sounds awesome!

Is the recommended workflow for Reason still to run bsb and then bundle individual files, same as with Webpack?


#3

Yep. The workflow is essentially the same. The noticeable difference would be the configuration. Only the command-line arguments are currently supported. For example it may look like this (note, that you need to have watchman installed):

$ fpack watch --dev src/Index.bs.js