Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
factoryModulePath,
firstNode,
true,
),
// Replace the bootstrap call expression. For example:
// from: platformNativeScriptDynamic().bootstrapModule(AppModule);
// to: platformNativeScript().bootstrapModuleFactory(__NgCli_bootstrap_2.AppModuleNgFactory);
new ReplaceNodeOperation(sourceFile, bootstrapCallExpr, newBootstrapCallExpr),
);
});
return ops;
};
return makeTransform(standardTransform, getTypeChecker);
}
let ops: TransformOperation[] = [];
if (!entryPath || normalize(sourceFile.fileName) !== normalize(entryPath)) {
return ops;
}
try {
ops = handleHmrSupport(sourceFile);
} catch (e) {
ops = [];
}
return ops;
};
return makeTransform(standardTransform, () => getNgCompiler().typeChecker);
}
ops.push(
...insertAllImport(sourceFile, 'reflect-metadata', firstNode, true),
...insertAllImport(
sourceFile,
'zone.js/dist/zone-node',
firstNode,
true,
),
);
}
return ops;
};
return makeTransform(standardTransform, getTypeChecker);
}