Code Review
/
src
/
xds
/
xds-agent.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
445640c4fff2435a72e7090a37531d81fb63ed6c
[src/xds/xds-agent.git]
/
webapp
/
src
/
app
/
@core-xds
/
module-import-guard.ts
1
export function throwIfAlreadyLoaded(parentModule: any, moduleName: string) {
2
if (parentModule) {
3
throw new Error(`${moduleName} has already been loaded. Import Core modules in the AppModule only.`);
4
}
5
}