fix(core): target project locator should handle node:module imports (#15104)
This commit is contained in:
parent
356ce90fb1
commit
3b5adfdf67
@ -12,7 +12,10 @@ import {
|
||||
} from '../project-graph/utils/find-project-for-path';
|
||||
import { builtinModules } from 'module';
|
||||
|
||||
const builtInModuleSet = new Set(builtinModules);
|
||||
const builtInModuleSet = new Set<string>([
|
||||
...builtinModules,
|
||||
...builtinModules.map((x) => `node:${x}`),
|
||||
]);
|
||||
|
||||
export class TargetProjectLocator {
|
||||
private projectRootMappings = createProjectRootMappings(this.nodes);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user