fixed provider duplication

This commit is contained in:
Eugene Pankov 2021-06-05 12:50:19 +02:00
parent c2ca127574
commit 17471096f2
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -21,10 +21,6 @@ export function getRootModule (plugins: any[]) {
...plugins.filter(x => x.bootstrap).map(x => x.bootstrap),
]
const providers = [
...plugins.filter(x => x.providers).map(x => x.providers),
].flat()
if (bootstrap.length === 0) {
throw new Error('Did not find any bootstrap components. Are there any plugins installed?')
}
@ -32,7 +28,6 @@ export function getRootModule (plugins: any[]) {
@NgModule({
imports,
bootstrap,
providers,
}) class RootModule { } // eslint-disable-line @typescript-eslint/no-extraneous-class
return RootModule