MCPcopy Create free account
hub / github.com/rollup/rollup / getImportedJsxFactoryVariable

Method getImportedJsxFactoryVariable

src/Module.ts:1287–1299  ·  view source on GitHub ↗
(
		baseName: string,
		nodeStart: number,
		importSource: string
	)

Source from the content-addressed store, hash-verified

1285 }
1286
1287 private getImportedJsxFactoryVariable(
1288 baseName: string,
1289 nodeStart: number,
1290 importSource: string
1291 ): Variable {
1292 const { id } = this.resolvedIds[importSource!];
1293 const module = this.graph.modulesById.get(id)!;
1294 const [variable] = module.getVariableForExportName(baseName, { importChain: [this.id] });
1295 if (!variable) {
1296 return this.error(logMissingJsxExport(baseName, id, this.id), nodeStart);
1297 }
1298 return variable;
1299 }
1300
1301 private getVariableFromNamespaceReexports(
1302 name: string,

Callers 1

Calls 4

errorMethod · 0.95
logMissingJsxExportFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected