mirror of
https://github.com/Eugeny/tabby.git
synced 2025-04-06 16:00:28 +08:00
fixed provider duplication
This commit is contained in:
parent
c2ca127574
commit
17471096f2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user