npm esbuild 0.8.42
v0.8.42

latest releases: 0.21.3, 0.21.2, 0.21.1...
3 years ago
  • Fix crash with block-level function declaration and --keep-names (#755)

    This release fixes a crash with block-level function declarations and the --keep-names option. The crash affected code that looks like this:

    if (true) function f() {}
    assert.strictEqual(f.name, 'f')
  • Disallow additional features in strict mode

    This change improves esbuild's compliance with the JavaScript specification. It is now an error to use legacy octal numeric literals and the identifiers implements, interface, let, package, private, protected, public, static, and yield in strict mode code.

  • Basic support for watch mode with plugins (#752)

    With this release, watch mode should now work with simple on-load plugins. Watch mode is implemented by tracking all file system accesses made by esbuild as it does a build. However, this doesn't catch external file system accesses such as those made by plugins. Now if an on-load plugin is used on a path in the file namespace, esbuild will also read the file during watch mode so that watch mode is aware of the file system access. Note that there is not yet API support for a plugin to return additional paths for watch mode to monitor.

  • Make JavaScript API error format more consistent (#745)

    If a JavaScript error is thrown while validating the build options, the thrown error should now have errors and warnings properties just like normal build errors. Previously these properties were only present if the build itself failed but not if build options were invalid. This consistency should make it easier to process errors from the build API call.

Don't miss a new esbuild release

NewReleases is sending notifications on new releases.