mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(angular): aot
This commit is contained in:
2831
angular/package-lock.json
generated
2831
angular/package-lock.json
generated
File diff suppressed because one or more lines are too long
@ -42,21 +42,21 @@
|
|||||||
"@ionic/core": "4.0.0-alpha.5"
|
"@ionic/core": "4.0.0-alpha.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular/common": "^6.0.0-rc.3",
|
"@angular/common": "^6.0.0",
|
||||||
"@angular/compiler": "^6.0.0-rc.3",
|
"@angular/compiler": "^6.0.0",
|
||||||
"@angular/compiler-cli": "^6.0.0-rc.3",
|
"@angular/compiler-cli": "^6.0.0",
|
||||||
"@angular/core": "^6.0.0-rc.3",
|
"@angular/core": "^6.0.0",
|
||||||
"@angular/forms": "^6.0.0-rc.3",
|
"@angular/forms": "^6.0.0",
|
||||||
"@angular/platform-browser": "^6.0.0-rc.3",
|
"@angular/platform-browser": "^6.0.0",
|
||||||
"@angular/platform-browser-dynamic": "^6.0.0-rc.3",
|
"@angular/platform-browser-dynamic": "^6.0.0",
|
||||||
"@angular/router": "^6.0.0-rc.3",
|
"@angular/router": "^6.0.0",
|
||||||
"chalk": "^2.3.2",
|
"chalk": "^2.3.2",
|
||||||
"execa": "^0.10.0",
|
"execa": "^0.10.0",
|
||||||
"fs-extra": "^5.0.0",
|
"fs-extra": "^5.0.0",
|
||||||
"glob": "7.1.2",
|
"glob": "7.1.2",
|
||||||
"inquirer": "^5.2.0",
|
"inquirer": "^5.2.0",
|
||||||
"listr": "^0.13.0",
|
"listr": "^0.13.0",
|
||||||
"rxjs": "^6.0.0-terrific-rc.3",
|
"rxjs": "^6.0.0",
|
||||||
"semver": "^5.5.0",
|
"semver": "^5.5.0",
|
||||||
"tslint": "^5.8.0",
|
"tslint": "^5.8.0",
|
||||||
"tslint-ionic-rules": "0.0.14",
|
"tslint-ionic-rules": "0.0.14",
|
||||||
|
@ -4,7 +4,6 @@ import { CommonModule } from '@angular/common';
|
|||||||
import * as c from './directives';
|
import * as c from './directives';
|
||||||
import * as d from './directives/proxies';
|
import * as d from './directives/proxies';
|
||||||
import * as p from './providers';
|
import * as p from './providers';
|
||||||
import { setupConfig } from '@ionic/core';
|
|
||||||
|
|
||||||
const DECLARATIONS = [
|
const DECLARATIONS = [
|
||||||
// proxies
|
// proxies
|
||||||
@ -129,17 +128,11 @@ const PROVIDERS = [
|
|||||||
imports: [CommonModule]
|
imports: [CommonModule]
|
||||||
})
|
})
|
||||||
export class IonicModule {
|
export class IonicModule {
|
||||||
static forRoot(config?: { [key: string]: any }): ModuleWithProviders {
|
static forRoot(_config?: { [key: string]: any }): ModuleWithProviders {
|
||||||
return {
|
return {
|
||||||
ngModule: IonicModule,
|
ngModule: IonicModule,
|
||||||
providers: [
|
providers: [
|
||||||
...PROVIDERS,
|
...PROVIDERS,
|
||||||
{ provide: p.ConfigToken, useValue: config },
|
|
||||||
{
|
|
||||||
provide: p.Config,
|
|
||||||
useFactory: setupConfig,
|
|
||||||
deps: [p.ConfigToken, p.Platform]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
11023
core/package-lock.json
generated
11023
core/package-lock.json
generated
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user