Skip to content

update(angular-universal-ssr): updating angular version from 10 to 15 #2717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions angular-universal-ssr/client-app/.gitignore
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ speed-measure-plugin*.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
31 changes: 20 additions & 11 deletions angular-universal-ssr/client-app/angular.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": "e9693d44-eea8-4fdb-918a-9139355769eb"
},
"newProjectRoot": "projects",
"projects": {
@@ -28,7 +29,6 @@
"skipTests": true
},
"@schematics/angular:module": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
@@ -49,10 +49,20 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
@@ -65,7 +75,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
@@ -83,7 +92,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
@@ -104,6 +114,5 @@
}
}
}
},
"defaultProject": "client-app"
}
}
}
49 changes: 25 additions & 24 deletions angular-universal-ssr/client-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "angular-universal-ssr_client-app",
"version": "0.0.0",
"type": "commonjs",
"scripts": {
"ng": "ng",
"start": "ng serve",
@@ -14,33 +15,33 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~10.2.0",
"@angular/common": "~10.2.0",
"@angular/compiler": "~10.2.0",
"@angular/core": "~10.2.0",
"@angular/forms": "~10.2.0",
"@angular/platform-browser": "~10.2.0",
"@angular/platform-browser-dynamic": "~10.2.0",
"@angular/router": "~10.2.0",
"rxjs": "~6.6.0",
"serve": "^13.0.0",
"tslib": "^2.0.0",
"zone.js": "~0.11.0"
"@angular/animations": "^15.1.2",
"@angular/common": "^15.1.2",
"@angular/compiler": "^15.1.2",
"@angular/core": "^15.1.2",
"@angular/forms": "^15.1.2",
"@angular/platform-browser": "^15.1.2",
"@angular/platform-browser-dynamic": "^15.1.2",
"@angular/router": "^15.1.2",
"rxjs": "^7.8.0",
"serve": "^14.2.0",
"tslib": "^2.5.0",
"zone.js": "~0.12.0"
},
"devDependencies": {
"@ngtools/webpack": "file:../patched_packages/_ngtools_webpack.tgz",
"@angular-devkit/build-angular": "0.1102.19",
"@angular/cli": "10.2.4",
"@angular/compiler-cli": "10.2.5",
"@types/node": "12.20.55",
"@ngtools/webpack": "15.1.4",
"@angular-devkit/build-angular": "15.1.4",
"@angular/cli": "15.1.4",
"@angular/compiler-cli": "15.1.2",
"@types/node": "18.11.9",
"clean-webpack-plugin": "4.0.0",
"html-webpack-plugin": "5.5.0",
"raw-loader": "4.0.2",
"sass-loader": "12.6.0",
"ts-node": "9.1.1",
"tslint": "6.1.3",
"typescript": "4.0.8",
"webpack": "5.72.1",
"webpack-cli": "4.10.0"
"sass-loader": "13.2.0",
"ts-node": "10.9.1",
"tslint": "6.2.0",
"typescript": "4.9.5",
"webpack": "5.75.0",
"webpack-cli": "5.0.1"
}
}
}
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ const routes: Routes = [
];

@NgModule({
imports: [RouterModule.forRoot(routes)],
imports: [RouterModule.forRoot(routes, {})],
exports: [RouterModule],
})
export class AppRoutingModule {}
Original file line number Diff line number Diff line change
@@ -5,9 +5,8 @@ import { ClientCitiesRoutingModule } from './client-cities-routing.module';
import { ClientCityComponent } from './client-city/client-city.component';

@NgModule({
declarations: [ClientCitiesHomeComponent, ClientCityComponent],
imports: [CommonModule, ClientCitiesRoutingModule],
exports: [ClientCitiesHomeComponent],
entryComponents: [ClientCityComponent],
declarations: [ClientCitiesHomeComponent, ClientCityComponent],
imports: [CommonModule, ClientCitiesRoutingModule],
exports: [ClientCitiesHomeComponent]
})
export class ClientCitiesModule {}
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
12 changes: 1 addition & 11 deletions angular-universal-ssr/client-app/src/polyfills.ts
Original file line number Diff line number Diff line change
@@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
@@ -55,7 +45,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.

/***************************************************************************************************
* APPLICATION IMPORTS
2 changes: 1 addition & 1 deletion angular-universal-ssr/client-app/src/test.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from '@angular/platform-browser-dynamic/testing';
import 'zone.js/dist/zone-testing';
import 'zone.js/testing';

declare const require: {
context(
10 changes: 8 additions & 2 deletions angular-universal-ssr/client-app/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": []
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"]
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
12 changes: 6 additions & 6 deletions angular-universal-ssr/client-app/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"compileOnSave": false,
"compilerOptions": {
@@ -7,14 +8,13 @@
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"lib": ["es2018", "dom"]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
"module": "es2020",
"lib": [
"es2018",
"dom"
]
}
}
39 changes: 27 additions & 12 deletions angular-universal-ssr/client-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
/*
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
It is not intended to be used to perform a compilation.

To learn more about this file see: https://angular.io/config/solution-tsconfig.
*/
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
}
]
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": false,
"strictPropertyInitialization": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"module": "es2020",
"lib": [
"es2018",
"dom"
]
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictTemplates": true
}
}
4 changes: 2 additions & 2 deletions angular-universal-ssr/client-app/webpack/client-app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { resolve } = require('path');
const { AngularCompilerPlugin } = require('@ngtools/webpack');
const { AngularWebpackPlugin } = require('@ngtools/webpack');
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ModuleFederationPlugin = require('webpack').container.ModuleFederationPlugin;
@@ -34,7 +34,7 @@ module.exports = (env = {}) => {
],
}),

new AngularCompilerPlugin({
new AngularWebpackPlugin({
tsConfigPath: './tsconfig.app.json',
entryModule: './src/app/app.module#AppModule',
skipCodeGeneration: true,
4 changes: 2 additions & 2 deletions angular-universal-ssr/client-app/webpack/client-ssr.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { AngularCompilerPlugin, PLATFORM } = require('@ngtools/webpack');
const { AngularWebpackPlugin } = require('@ngtools/webpack');
const { resolve } = require('path');
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
const ModuleFederationPlugin = require('webpack').container.ModuleFederationPlugin;
@@ -35,7 +35,7 @@ module.exports = (env = {}) => {
{ '@angular/router': { singleton: true, eager: true } },
],
}),
new AngularCompilerPlugin({
new AngularWebpackPlugin({
entryModule: resolve(__dirname, '../src/app/app.module#AppModule'),
tsConfigPath: './tsconfig.app.json',
skipCodeGeneration: true,
6,424 changes: 6,424 additions & 0 deletions angular-universal-ssr/client-app/yarn.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions angular-universal-ssr/host-app/.gitignore
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ speed-measure-plugin*.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
42 changes: 28 additions & 14 deletions angular-universal-ssr/host-app/angular.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,8 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "yarn"
"packageManager": "yarn",
"analytics": "00254bfe-36c5-4063-afd7-8def92406660"
},
"newProjectRoot": "projects",
"projects": {
@@ -28,7 +29,6 @@
"skipTests": true
},
"@schematics/angular:module": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
@@ -49,10 +49,20 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
@@ -65,7 +75,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
@@ -83,7 +92,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
@@ -107,7 +117,9 @@
"options": {
"outputPath": "dist/host-app/server",
"main": "server.ts",
"tsConfig": "tsconfig.server.json"
"tsConfig": "tsconfig.server.json",
"sourceMap": true,
"optimization": false
},
"configurations": {
"production": {
@@ -121,7 +133,8 @@
"sourceMap": false,
"optimization": true
}
}
},
"defaultConfiguration": ""
},
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
@@ -141,14 +154,15 @@
"options": {
"browserTarget": "host-app:build:production",
"serverTarget": "host-app:server:production",
"routes": ["/"]
"routes": [
"/"
]
},
"configurations": {
"production": {}
}
}
}
}
},
"defaultProject": "host-app"
}
}
}
55 changes: 28 additions & 27 deletions angular-universal-ssr/host-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "angular-universal-ssr_host-app",
"version": "0.0.0",
"type": "commonjs",
"scripts": {
"ng": "ng",
"start": "ng serve",
@@ -9,42 +10,42 @@
"lint": "ng lint",
"dev:ssr": "ng run host-app:serve-ssr",
"serve:ssr": "node dist/host-app/server/main.js",
"build:ssr": "ng build --prod && ng run host-app:server:production",
"build:ssr": "ng build --configuration production && ng run host-app:server:production",
"build:federation": "webpack",
"serve:federation": "node dist/server/main.js",
"clean": "rm -rf dist"
},
"private": true,
"dependencies": {
"@angular/animations": "~10.2.0",
"@angular/common": "~10.2.0",
"@angular/compiler": "~10.2.0",
"@angular/core": "~10.2.0",
"@angular/forms": "~10.2.0",
"@angular/platform-browser": "~10.2.0",
"@angular/platform-browser-dynamic": "~10.2.0",
"@angular/platform-server": "~10.2.0",
"@angular/router": "~10.2.0",
"@nguniversal/express-engine": "^10.0.1",
"express": "^4.15.2",
"rxjs": "~6.6.0",
"tslib": "^2.0.0",
"zone.js": "~0.11.0"
"@angular/animations": "^15.1.2",
"@angular/common": "^15.1.2",
"@angular/compiler": "^15.1.2",
"@angular/core": "^15.1.2",
"@angular/forms": "^15.1.2",
"@angular/platform-browser": "^15.1.2",
"@angular/platform-browser-dynamic": "^15.1.2",
"@angular/platform-server": "^15.1.2",
"@angular/router": "^15.1.2",
"@nguniversal/express-engine": "^15.1.0",
"express": "^4.17.3",
"rxjs": "^7.8.0",
"tslib": "^2.5.0",
"zone.js": "~0.12.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.1102.19",
"@angular/cli": "10.2.4",
"@angular/compiler-cli": "10.2.5",
"@ngtools/webpack": "file:../patched_packages/_ngtools_webpack.tgz",
"@nguniversal/builders": "9.1.1",
"@angular-devkit/build-angular": "15.1.4",
"@angular/cli": "15.1.4",
"@angular/compiler-cli": "15.1.2",
"@ngtools/webpack": "15.1.4",
"@nguniversal/builders": "15.1.0",
"clean-webpack-plugin": "4.0.0",
"html-webpack-plugin": "5.5.0",
"raw-loader": "4.0.2",
"sass-loader": "12.6.0",
"ts-node": "9.1.1",
"tslint": "6.1.3",
"typescript": "4.0.8",
"webpack": "5.72.1",
"webpack-cli": "4.10.0"
"sass-loader": "13.2.0",
"ts-node": "10.9.1",
"tslint": "6.2.0",
"typescript": "4.9.5",
"webpack": "5.75.0",
"webpack-cli": "5.0.1"
}
}
}
2 changes: 1 addition & 1 deletion angular-universal-ssr/host-app/server-bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'zone.js/dist/zone-node';
import 'zone.js/node';

import { ngExpressEngine } from '@nguniversal/express-engine';
import * as express from 'express';
4 changes: 2 additions & 2 deletions angular-universal-ssr/host-app/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -23,8 +23,8 @@ const routes: Routes = [
@NgModule({
imports: [
RouterModule.forRoot(routes, {
initialNavigation: 'enabled',
}),
initialNavigation: 'enabledNonBlocking'
})
],
exports: [RouterModule],
})
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
2 changes: 1 addition & 1 deletion angular-universal-ssr/host-app/src/main.server.ts
Original file line number Diff line number Diff line change
@@ -7,4 +7,4 @@ if (environment.production) {
}

export { AppServerModule } from './app/app.server.module';
export { renderModule, renderModuleFactory } from '@angular/platform-server';
export { renderModuleFactory } from '@angular/platform-server';
12 changes: 1 addition & 11 deletions angular-universal-ssr/host-app/src/polyfills.ts
Original file line number Diff line number Diff line change
@@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
@@ -55,7 +45,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
import 'zone.js'; // Included with Angular CLI.

/***************************************************************************************************
* APPLICATION IMPORTS
10 changes: 8 additions & 2 deletions angular-universal-ssr/host-app/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": []
},
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"]
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
12 changes: 6 additions & 6 deletions angular-universal-ssr/host-app/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"compileOnSave": false,
"compilerOptions": {
@@ -7,14 +8,13 @@
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"lib": ["es2018", "dom"]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
"module": "es2020",
"lib": [
"es2018",
"dom"
]
}
}
42 changes: 27 additions & 15 deletions angular-universal-ssr/host-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
/*
This is a "Solution Style" tsconfig.json file, and is used by editors and TypeScript’s language server to improve development experience.
It is not intended to be used to perform a compilation.
To learn more about this file see: https://angular.io/config/solution-tsconfig.
*/
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.server.json"
}
]
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": false,
"strictPropertyInitialization": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"module": "es2020",
"lib": [
"es2018",
"dom"
]
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictTemplates": true
}
}
5 changes: 3 additions & 2 deletions angular-universal-ssr/host-app/tsconfig.server.json
Original file line number Diff line number Diff line change
@@ -3,8 +3,9 @@
"compilerOptions": {
"outDir": "./out-tsc/app-server",
"allowJs": true,
"types": ["node"],
"target": "es2016"
"types": [
"node"
]
},
"files": ["src/main.server.ts", "server-bootstrap.ts"],
"angularCompilerOptions": {
4 changes: 2 additions & 2 deletions angular-universal-ssr/host-app/webpack/host-app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { resolve } = require('path');
const { AngularCompilerPlugin } = require('@ngtools/webpack');
const { AngularWebpackPlugin } = require('@ngtools/webpack');
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ModuleFederationPlugin = require('webpack').container.ModuleFederationPlugin;
@@ -37,7 +37,7 @@ module.exports = (env = {}) => {
],
}),

new AngularCompilerPlugin({
new AngularWebpackPlugin({
tsConfigPath: './tsconfig.app.json',
entryModule: './src/app/app.module#AppModule',
skipCodeGeneration: true,
6 changes: 3 additions & 3 deletions angular-universal-ssr/host-app/webpack/host-ssr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { resolve } = require('path');
const { AngularCompilerPlugin, PLATFORM } = require('@ngtools/webpack');
const { AngularWebpackPlugin } = require('@ngtools/webpack');
const { ContextReplacementPlugin } = require('webpack');
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
const ModuleFederationPlugin = require('webpack').container.ModuleFederationPlugin;
@@ -41,10 +41,10 @@ module.exports = (env = {}) => {

new ContextReplacementPlugin(/@?hapi(\\|\/)/),
new ContextReplacementPlugin(/express(\\|\/)/),
new AngularCompilerPlugin({
new AngularWebpackPlugin({
entryModule: resolve(__dirname, '../src/app/app.server.module#AppServerModule'),
tsConfigPath: './tsconfig.server.json',
platform: PLATFORM.Server,
platform: 1,
skipCodeGeneration: true,
directTemplateLoading: false,
}),
7,175 changes: 7,175 additions & 0 deletions angular-universal-ssr/host-app/yarn.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion angular-universal-ssr/package.json
Original file line number Diff line number Diff line change
@@ -6,13 +6,14 @@
"./host-app"
],
"version": "0.0.0",
"type": "commonjs",
"scripts": {
"start": "yarn build && yarn serve",
"build": "lerna run --scope=angular-universal-ssr_* build:federation",
"serve": "lerna run --scope=angular-universal-ssr_* --parallel serve:federation",
"clean": "lerna run --scope=angular-universal-ssr_* --parallel clean"
},
"devDependencies": {
"lerna": "3.22.1"
"lerna": "6.4.1"
}
}
Binary file not shown.
9,932 changes: 9,932 additions & 0 deletions angular-universal-ssr/yarn.lock

Large diffs are not rendered by default.