test(@ngtools/webpack): update depedencies in webpack test-app

This commit is contained in:
Alan Agius 2021-01-21 11:46:48 +01:00 committed by Filipe Silva
parent cf978cdf5d
commit c561e733ea
4 changed files with 17 additions and 19 deletions

View File

@ -2,26 +2,25 @@
"name": "test",
"license": "MIT",
"dependencies": {
"@angular/common": "9.0.0",
"@angular/compiler": "9.0.0",
"@angular/compiler-cli": "9.0.0",
"@angular/core": "9.0.0",
"@angular/platform-browser": "9.0.0",
"@angular/platform-browser-dynamic": "9.0.0",
"@angular/platform-server": "9.0.0",
"@angular/router": "9.0.0",
"@angular/common": "11.0.0",
"@angular/compiler": "11.0.0",
"@angular/compiler-cli": "11.0.0",
"@angular/core": "11.0.0",
"@angular/platform-browser": "11.0.0",
"@angular/platform-browser-dynamic": "11.0.0",
"@angular/platform-server": "11.0.0",
"@angular/router": "11.0.0",
"@ngtools/webpack": "0.0.0",
"core-js": "^3.0.0",
"rxjs": "^6.4.0",
"zone.js": "^0.9.1"
},
"devDependencies": {
"node-sass": "^4.7.0",
"performance-now": "^0.2.0",
"raw-loader": "^0.5.1",
"sass-loader": "^6.0.0",
"typescript": "~3.6.4",
"webpack": "~4.0.1",
"webpack-cli": "~2.0.9"
"raw-loader": "^4.0.2",
"sass": "^1.32.5",
"sass-loader": "^10.1.1",
"typescript": "~4.0.1",
"webpack": "^4.0.1",
"webpack-cli": "^4.4.0"
}
}

View File

@ -1,9 +1,9 @@
{
"compilerOptions": {
"baseUrl": "",
"module": "es2015",
"module": "es2020",
"moduleResolution": "node",
"target": "es5",
"target": "es2015",
"noImplicitAny": false,
"sourceMap": true,
"mapRoot": "",

View File

@ -19,7 +19,6 @@ module.exports = {
module: {
rules: [
{ test: /\.scss$/, loaders: ['raw-loader', 'sass-loader'] },
{ test: /\.css$/, loader: 'raw-loader' },
{ test: /\.html$/, loader: 'raw-loader' },
{ test: /\.ts$/, loader: '@ngtools/webpack' }
]

View File

@ -24,7 +24,7 @@ export default async function (skipCleaning: () => void) {
// Note: these sizes are without Build Optimizer or any advanced optimizations in the CLI.
await expectFileSizeToBeUnder('dist/app.main.js', (isVe ? 483 : 565) * 1024);
await expectFileSizeToBeUnder('dist/0.app.main.js', 1 * 1024);
await expectFileSizeToBeUnder('dist/1.app.main.js', 2 * 1024);
await expectFileSizeToBeUnder('dist/2.app.main.js', 2 * 1024);
// test resource urls without ./
await replaceInFile('app/app.component.ts', './app.component.html', 'app.component.html');