MCPcopy Create free account
hub / github.com/observablehq/framework / ImportExpression

Function ImportExpression

src/javascript/transpile.ts:164–169  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

162 }
163 simple(body, {
164 ImportExpression(node) {
165 const source = node.source;
166 if (isStringLiteral(source)) {
167 rewriteImportSource(source);
168 }
169 },
170 CallExpression(node) {
171 const source = node.arguments[0];
172 if (isImportMetaResolve(node) && isStringLiteral(source)) {

Callers

nothing calls this directly

Calls 2

isStringLiteralFunction · 0.85
rewriteImportSourceFunction · 0.70

Tested by

no test coverage detected