@roots/bud-esbuild
Esbuild support can be added by installing the @roots/bud-esbuild extension.
Installation​
- npm
- Yarn
- pnpm
npm install @roots/bud-esbuild --save-dev
yarn add @roots/bud-esbuild --dev
pnpm add @roots/bud-esbuild --save-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 bud => {
await bud.extensions.add(Plugin)
}