]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/core/module-import-guard.ts
Bumped to version v5.2.1
[github/Chocobozzz/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 }