Open Peeja opened 2 months ago
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.
esbuild
CommonOptions & TransformOptions & BuildOptions
TransformOptions
BuildOptions
loader
Loader
TS Playground
(Er, that's esbuild, of course, not eslint.) 😛
eslint
The
esbuild
option is typed asCommonOptions & TransformOptions & BuildOptions
. ButTransformOptions
andBuildOptions
have incompatible types forloader
.TransformOptions
only take a singleLoader
, whileBuildOptions
expects an object mapping extensions toLoader
s.TS Playground