Packages

@esbuild/linux-x64

0.28.2 · 8 Aug 2026MIT396.1M / weekRepositoryHomepagenpmAtom feed

Your version

0.17.2

17 Jan 2023Where it was published

0.28.2 is the newest release of 0.17.x.

In short

1 new

Release note

  • Add onDispose to the plugin API (#2140, #2205)

    If your plugin wants to perform some cleanup after it's no longer going to be used, you can now use the onDispose API to register a callback for cleanup-related tasks. For example, if a plugin starts a long-running child process then it may want to terminate that process when the plugin is discarded. Previously there was no way to do this. Here's an example:

    let examplePlugin = {
      name: 'example',
      setup(build) {
        build.onDispose(() => {
          console.log('This plugin is no longer used')
        })
      },
    }

    These onDispose callbacks will be called after every build() call regardless of whether the build failed or not as well as after the first dispose() call on a given build context.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.