Skip to main content

@roots/bud-esbuild

Esbuild support can be added by installing the @roots/bud-esbuild extension.

Installation

yarn add @roots/bud-esbuild --dev

Details

  • Supports .js, .jsx, .ts, .tsx files.
  • Does not support typechecking.

Typechecking

Incompatible with TypeScript config files

bud.js requires ts-node in order to parse configuration files authored in TypeScript at build time. Unfortunately, fork-ts-checker-webpack-plugin is Incompatible with this setup. You'll need to author your configuration file without TypeScript support.

Typechecking can be added with fork-ts-checker-webpack-plugin.

import Plugin from 'fork-ts-checker-webpack-plugin'

export default app => {
await app.extensions.add(Plugin)
}