fix(js): allow inlineable dependency to be added to externals (#21051)
This commit is contained in:
parent
40cbae2fae
commit
6307a831d9
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user