Skip to content
Avindra Goolcharan edited this page Oct 27, 2020 · 13 revisions

2020 is an exciting time for JavaScript, as it has been since about 2015 or so.

This project features (as build tools):

  • Deno (source code is tested with built-in deno test)
    • Now users SWC which is comparable to esbuild speed
    • Has an in-built Bundler that might replace esbuild
  • Node.js 15
  • esbuild (CPU native program serving as the bundler)

Using Deno is a convenience by which I can run unit tests with a simple command. The alternative may have been installing additional build dependencies for code transformation. Such hassles are easily avoided by using Deno's native test runner. Using Deno additionally has two consequences:

  • Serves as a gradual way to adopt Deno more wholly (story around TensorFlow support unclear at this time)
  • Code will become more portable (and thus more sound) if it needs to run on both platforms

Esbuild is indeed very fast; however be cautious about support your users may need if you adopt anything from this. For example, IE11 will not work: the code emitted by vanilla esbuild contains arrow functions, which is fine for most modern web browsers, but will break in IE11 and other older browsers.

Clone this wiki locally