Skip to content
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/servicesHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,14 @@ export function makeSolutionBuilderHost(
function getInputFileNameFromOutput(
outputFileName: string
): string | true | undefined {
// Unless we explicitly want to compile files in node_modules, exclude them from lookups
if (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As @andrewbranch i am not familiar with monorepo projects out there that this will impact. I think somewhere we are missing the cache and that would be better solution in my opinion

!instance.loaderOptions.allowTsInNodeModules &&
outputFileName.indexOf('/node_modules/') !== -1
) {
return undefined;
}

const resolvedFileName = filePathKeyMapper(outputFileName);
for (const configInfo of configFileInfo.values()) {
ensureInputOutputInfo(configInfo);
Expand Down