feat(@schematics/angular): enable lazy loading on the server for new projects

With this change, lazy-loading on the server becomes enabled out of the box for new projects. This is because webpack will only split ES6 imports into separate chunks. However when using commonjs all lazy loaded paths will be concatenated into the main.js file.
This commit is contained in:
Alan Agius 2020-03-31 16:30:05 +02:00 committed by Keen Yee Liau
parent bd789f5dd6
commit a2b158be88
4 changed files with 0 additions and 5 deletions

View File

@ -2,7 +2,6 @@
"extends": "./<%= tsConfigExtends %>",
"compilerOptions": {
"outDir": "<%= outDir %>-server",
"module": "commonjs",
"types": [
"node"
]

View File

@ -91,7 +91,6 @@ describe('Universal Schematic', () => {
extends: './tsconfig.app.json',
compilerOptions: {
outDir: './out-tsc/app-server',
module: 'commonjs',
types: ['node'],
},
files: [
@ -116,7 +115,6 @@ describe('Universal Schematic', () => {
extends: './tsconfig.app.json',
compilerOptions: {
outDir: '../../out-tsc/app-server',
module: 'commonjs',
types: ['node'],
},
files: [

View File

@ -2,7 +2,6 @@
"extends": "./tsconfig.app.json",
"compilerOptions": {
"outDir": "../dist-server",
"module": "commonjs",
"types": []
},
"files": [

View File

@ -3,7 +3,6 @@
"compilerOptions": {
"outDir": "../dist-server",
"baseUrl": "./",
"module": "commonjs",
"types": []
},
"files": [