Skip to content

Instantly share code, notes, and snippets.

@zindel
Last active August 3, 2022 17:57
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zindel/3940983aa96967334cd798926a0f47dc to your computer and use it in GitHub Desktop.
Save zindel/3940983aa96967334cd798926a0f47dc to your computer and use it in GitHub Desktop.

Fastpack - pack JavaScript fast & easy

This gist is a submission for a lightning talk on the ReactiveConf 2018.

Why?

  • JavaScript bundling can be a lot faster
  • There are proper tools to guarantee consistency
  • Writing OCaml code is fun!

Show me benchmarks!

1602 modules / ~5.8Mb unzipped / MacBook Pro 13" 2015

Fastpack Fastpack+Babel Webpack 4.6.0 Parcel 1.5.1
initial build 2.148s 3.383s 6.113s 24.32s
- persistent cache 0.176s 0.219s N/A 14.88s
- watch mode 0.074s 0.171s 0.612s 0.354s

Note on Parcel: very likely it is doing more than we need to, but we were unable to configure it.

Talk Outline

  • Brief intro on the world of bundlers
  • Why Fastpack is special?
  • How to install / configure / use it
  • Short demo if time permits

About me

My name is Oleksiy Golovko (@zindelzindel, github), one of the lead developers of the Fastpack. At work doing a lot of JavaScript & Python. Most of the fun comes from the functional world of the OCaml, Haskell & Reason though :)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment