mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 11:03:53 +08:00
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:
parent
bd789f5dd6
commit
a2b158be88
@ -2,7 +2,6 @@
|
||||
"extends": "./<%= tsConfigExtends %>",
|
||||
"compilerOptions": {
|
||||
"outDir": "<%= outDir %>-server",
|
||||
"module": "commonjs",
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
|
@ -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: [
|
||||
|
@ -2,7 +2,6 @@
|
||||
"extends": "./tsconfig.app.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../dist-server",
|
||||
"module": "commonjs",
|
||||
"types": []
|
||||
},
|
||||
"files": [
|
||||
|
@ -3,7 +3,6 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "../dist-server",
|
||||
"baseUrl": "./",
|
||||
"module": "commonjs",
|
||||
"types": []
|
||||
},
|
||||
"files": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user