@nx/node webpack executor type checker does not honor buildLibsFromSource
flag
#30160
Open
1 of 4 tasks
Labels
Current Behavior
A common usage of incremental builds is to be able to have different typescript settings between a library and the app that imports it. I've seen this request in a few places, and
buildLibsFromSource: false
is the most popular solution. However, the Webpack type checker does not take into account thebuildLibsFromSource
flag and instead type checks the source files of every imported lib even though Webpack correctly bundles the build artifacts of each library.Expected Behavior
When
buildLibsFromSource
isfalse
, Webpack should not type check the source files of imported libraries, so that libraries can use different tsconfig compiler options than the app that imports them.GitHub Repo
https://github.com/JoshuaCWebDeveloper/debug-nx-incremental-build-typechecking
Steps to Reproduce
util-lib/src/lib/util-lib.ts
:noImplicitAny
inpackages/util-lib/tsconfig.json
:npm install
:webpack-app/src/main.ts
:webpack-app/tsconfig.json
:Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
This seems to be the same issue for the Vite executor: #21844.
I haven't looked into this deeply, so I don't know whether the implementation problems and solution discussed in that issue are relevant here or not.
The text was updated successfully, but these errors were encountered: