]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/core/module-import-guard.ts
Client: add basic aot support
[github/Chocobozzz/PeerTube.git] / client / src / app / core / module-import-guard.ts
CommitLineData
693b1aba
C
1export 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}