Closed ICJR closed 6 days ago
I believe
esbuild-loader
is not working correctly with$configDir
.
This may be a bug with esbuild-loader instead of with esbuild. Please provide a way to reproduce the issue here that uses esbuild (not esbuild-loader). Note that this is the esbuild repo and esbuild-loader is a separate project (which you can find here). This repo has nothing to do with Webpack.
Based on #3782 I believe you applied
$configDir
forpaths
configuration only, I believe it applies to any path defined within tsconfig ( includingexclude
andinclude
).
The exclude
and include
fields are not used by esbuild's bundler: https://esbuild.github.io/content-types/#tsconfig-json. So it would be meaningless for esbuild to apply $configDir
to them as it wouldn't have any effect on anything that esbuild does.
Gotcha, I assumed it had something to do with the bundling package. Thank you.
I believe
esbuild-loader
is not working correctly with$configDir
.implementation
configuration option to bring the latest esbuild package to webpack.cannot find ./src/* file
.baseUrl
and set to.
everything works correctly.${configDir}
frominclude
config, esbuild/webpack build doesn`t throw errors but TS does.Based on https://github.com/evanw/esbuild/issues/3782 I believe you applied
$configDir
forpaths
configuration only, I believe it applies to any path defined within tsconfig ( includingexclude
andinclude
).