esbuild-runner icon indicating copy to clipboard operation
esbuild-runner copied to clipboard

`TranspileOptions["esbuild"]` type appears to be wrong

Open Peeja opened this issue 1 year ago • 1 comments

The esbuild option is typed as CommonOptions & TransformOptions & BuildOptions. But TransformOptions and BuildOptions have incompatible types for loader. TransformOptions only take a single Loader, while BuildOptions expects an object mapping extensions to Loaders.

TS Playground

Peeja avatar Aug 23 '24 14:08 Peeja

(Er, that's esbuild, of course, not eslint.) 😛

Peeja avatar Aug 23 '24 14:08 Peeja