During the week of May 17, we’ll be changing how we bundle JavaScript serverless functions for deployment. Under the hood, we’ll be using a tool called esbuild, which enables:
- Much faster functions deployment — up to 20x faster in tests
- Smaller function bundles, which translates to more performant functions at runtime
- ES modules syntax support
- Support for other ECMAScript features like optional chaining, nullish coalescing, and logical assignment operators
There are some edge cases, particularly around functions that depend on modules with native addons, that work differently with the new bundler. While we work on identifying these edge cases and automating ways to handle them, we’re opening the ability to beta-test the new bundler now. You’ll get to take advantage of the features above, and we’ll get more chances to find edge cases. win-win!
To find out more about the bundler and how to enable it on your site, visit our blog post and docs:
We’d love to hear how it works for you!