Merge branch 'signup-hooks' into 'develop'
[oweals/peertube.git] / client / src / app / core / 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 }