blob: 445640c4fff2435a72e7090a37531d81fb63ed6c (
plain)
1
2
3
4
5
|
export function throwIfAlreadyLoaded(parentModule: any, moduleName: string) {
if (parentModule) {
throw new Error(`${moduleName} has already been loaded. Import Core modules in the AppModule only.`);
}
}
|