diff --git a/ponyracer/angular.json b/ponyracer/angular.json index 22c859698..6336e7c68 100644 --- a/ponyracer/angular.json +++ b/ponyracer/angular.json @@ -43,7 +43,14 @@ "aot": true, "extractLicenses": true, "vendorChunk": false, - "buildOptimizer": true + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + } + ] } } }, diff --git a/ponyracer/package.json b/ponyracer/package.json index 68b3f0a94..3a2e4fb5f 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "~7.0.0-beta.5", - "@angular/common": "~7.0.0-beta.5", - "@angular/compiler": "~7.0.0-beta.5", - "@angular/core": "~7.0.0-beta.5", - "@angular/forms": "~7.0.0-beta.5", - "@angular/http": "~7.0.0-beta.5", - "@angular/platform-browser": "~7.0.0-beta.5", - "@angular/platform-browser-dynamic": "~7.0.0-beta.5", - "@angular/router": "~7.0.0-beta.5", + "@angular/animations": "~7.0.0-rc.0", + "@angular/common": "~7.0.0-rc.0", + "@angular/compiler": "~7.0.0-rc.0", + "@angular/core": "~7.0.0-rc.0", + "@angular/forms": "~7.0.0-rc.0", + "@angular/http": "~7.0.0-rc.0", + "@angular/platform-browser": "~7.0.0-rc.0", + "@angular/platform-browser-dynamic": "~7.0.0-rc.0", + "@angular/router": "~7.0.0-rc.0", "core-js": "^2.5.4", - "rxjs": "~6.3.2", + "rxjs": "~6.3.3", "zone.js": "~0.8.26" }, "devDependencies": { "@angular-devkit/build-angular": "~0.9.0-beta.1", - "@angular/cli": "~7.0.0-beta.4", - "@angular/compiler-cli": "~7.0.0-beta.5", - "@angular/language-service": "~7.0.0-beta.5", + "@angular/cli": "~7.0.0-rc.0", + "@angular/compiler-cli": "~7.0.0-rc.0", + "@angular/language-service": "~7.0.0-rc.0", "@types/jasmine": "~2.8.8", "@types/jasminewd2": "~2.0.3", "@types/node": "~8.9.4", @@ -43,6 +43,6 @@ "protractor": "~5.4.0", "ts-node": "~7.0.0", "tslint": "~5.11.0", - "typescript": "~3.0.1" + "typescript": "~3.1.1" } } diff --git a/ponyracer/src/polyfills.ts b/ponyracer/src/polyfills.ts index 8fceb45d3..6bf254753 100644 --- a/ponyracer/src/polyfills.ts +++ b/ponyracer/src/polyfills.ts @@ -28,24 +28,25 @@ // import 'core-js/es6/math'; // import 'core-js/es6/string'; // import 'core-js/es6/date'; -// import 'core-js/es6/array'; // import 'core-js/es6/regexp'; // import 'core-js/es6/map'; // import 'core-js/es6/weak-map'; // import 'core-js/es6/set'; +/** + * If your app need to indexed by Google Search, your app require polyfills 'core-js/es6/array' + * Google bot use ES5. + * FYI: Googlebot uses a renderer following the similar spec to Chrome 41. + * https://developers.google.com/search/docs/guides/rendering + **/ +// import 'core-js/es6/array'; + /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ // import 'core-js/es6/reflect'; - -/** Evergreen browsers require these. **/ -// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -import 'core-js/es7/reflect'; - - /** * Web Animations `@angular/platform-browser/animations` * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. diff --git a/ponyracer/tsconfig.json b/ponyracer/tsconfig.json index 916247e4c..46aeded1b 100644 --- a/ponyracer/tsconfig.json +++ b/ponyracer/tsconfig.json @@ -14,7 +14,7 @@ "node_modules/@types" ], "lib": [ - "es2017", + "es2018", "dom" ] }