Skip to content

Commit 78dbe18

Browse files
committed
fix(@schematics/angular): remove animations module from ng new app
Previously the animations module was added to the `ng new` app, because `platform-server` was using it. That's no longer the case as of angular/angular#59762 so these changes remove the dependency.
1 parent b50b6ee commit 78dbe18

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

packages/schematics/angular/workspace/files/package.json.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
},
1111
"private": true,
1212
"dependencies": {
13-
"@angular/animations": "<%= latestVersions.Angular %>",
1413
"@angular/common": "<%= latestVersions.Angular %>",
1514
"@angular/compiler": "<%= latestVersions.Angular %>",
1615
"@angular/core": "<%= latestVersions.Angular %>",

tests/legacy-cli/e2e/tests/build/material.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export default async function () {
100100
});
101101
const distFiles = await readdir('dist/test-project/browser');
102102
const jsCount = distFiles.filter((file) => file.endsWith('.js')).length;
103-
// 3 = polyfills, main, and one lazy chunk
104-
assert.equal(jsCount, 3);
103+
// 2 = polyfills and main
104+
assert.equal(jsCount, 2);
105105

106106
await execWithEnv('ng', ['e2e', '--configuration=production'], {
107107
...process.env,

tests/legacy-cli/e2e/tests/build/server-rendering/server-routes-output-mode-server-platform-neutral.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ export default async function () {
6969
},
7070
];
7171
`,
72-
'src/app/app.config.ts': `
73-
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
74-
${(await readFile('src/app/app.config.ts', 'utf8')).replace('provideRouter(routes),', 'provideAnimationsAsync(), provideRouter(routes),')}
75-
`,
7672
'src/server.ts': `
7773
import { AngularAppEngine, createRequestHandler } from '@angular/ssr';
7874
import { createApp, createRouter, toWebHandler, defineEventHandler, toWebRequest } from 'h3';

0 commit comments

Comments
 (0)