mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-21 15:46:03 +00:00
fixed provider duplication
This commit is contained in:
@@ -21,10 +21,6 @@ export function getRootModule (plugins: any[]) {
|
|||||||
...plugins.filter(x => x.bootstrap).map(x => x.bootstrap),
|
...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) {
|
if (bootstrap.length === 0) {
|
||||||
throw new Error('Did not find any bootstrap components. Are there any plugins installed?')
|
throw new Error('Did not find any bootstrap components. Are there any plugins installed?')
|
||||||
}
|
}
|
||||||
@@ -32,7 +28,6 @@ export function getRootModule (plugins: any[]) {
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports,
|
imports,
|
||||||
bootstrap,
|
bootstrap,
|
||||||
providers,
|
|
||||||
}) class RootModule { } // eslint-disable-line @typescript-eslint/no-extraneous-class
|
}) class RootModule { } // eslint-disable-line @typescript-eslint/no-extraneous-class
|
||||||
|
|
||||||
return RootModule
|
return RootModule
|
||||||
|
Reference in New Issue
Block a user