Skip to content

Commit adf4ea5

Browse files
crisbetoalan-agius4
authored andcommitted
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 8c7c7ac commit adf4ea5

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

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

-1
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/server-rendering/server-routes-output-mode-server-platform-neutral.ts

-4
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)