Skip to content

Commit

Permalink
fix(js): allow inlineable dependency to be added to externals (nrwl#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysoo authored Jan 9, 2024
1 parent 40cbae2 commit 6307a83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/js/src/utils/inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ function recursiveUpdateImport(
const updatedContent = fileContent.replace(importRegex, (matched) => {
const result = matched.replace(/['"]/g, '');
// If a match is the same as the rootParentDir, we're checking its own files so we return the matched as in no changes.
if (result === rootParentDir) return matched;
if (result === rootParentDir || !inlinedDepsDestOutputRecord[result])
return matched;
const importPath = `"${relative(
dirPath,
inlinedDepsDestOutputRecord[result]
Expand Down

0 comments on commit 6307a83

Please sign in to comment.