]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - module-import-guard.ts
32b1d8f193d1cfd72353a3225a98272e342c6429
[github/Chocobozzz/PeerTube.git] / 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 }