MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / runLink

Function runLink

packages/vite/configuration/angular.ts:278–288  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

276 const filename = chunk.fileName || chunk.name || 'chunk.mjs';
277 const debug = process.env.VITE_DEBUG_LOGS === '1' || process.env.VITE_DEBUG_LOGS === 'true';
278 const runLink = async (input: string) => {
279 const result = await (babel as any).transformAsync(input, {
280 filename,
281 configFile: false,
282 babelrc: false,
283 sourceMaps: false,
284 compact: false,
285 plugins: [linkerPlugin],
286 });
287 return result?.code ?? input;
288 };
289 let transformed = await runLink(code);
290 if (containsRealNgDeclare(transformed)) {
291 transformed = await runLink(transformed);

Callers 1

renderChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected