blob: 32b1d8f193d1cfd72353a3225a98272e342c6429 (
plain) (
blame)
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.`)
}
}
|