MCPcopy Index your code
hub / github.com/rollup/rollup / includeDynamicImport

Method includeDynamicImport

src/Module.ts:1408–1420  ·  view source on GitHub ↗
(node: ImportExpression)

Source from the content-addressed store, hash-verified

1406 }
1407
1408 private includeDynamicImport(node: ImportExpression): void {
1409 const { resolution } = node;
1410 if (resolution instanceof Module) {
1411 if (!resolution.includedDynamicImporters.includes(this)) {
1412 resolution.includedDynamicImporters.push(this);
1413 // If a module has a top-level await, removing this entry can create
1414 // deadlocks.
1415 if (this.astContext.usesTopLevelAwait) {
1416 resolution.includedTopLevelAwaitingDynamicImporters.add(this);
1417 }
1418 }
1419 }
1420 }
1421
1422 private includeVariable(variable: Variable, path: ObjectPath, context: InclusionContext): void {
1423 const { included, module: variableModule } = variable;

Callers 1

includeNodeMethod · 0.80

Calls 2

pushMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected