You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(core): make the error messages tree shakable (#44219)
Long error messages can be tree-shaken in the production build.
Doing this, we will keep the throw and remove the long error messages.
See: #44210 (review)
PR Close#44219
.toBe('ApplicationRef.tick is called recursively');
169
+
.toBe('NG0101: ApplicationRef.tick is called recursively');
170
170
});
171
171
172
172
describe('APP_BOOTSTRAP_LISTENER',()=>{
@@ -204,7 +204,7 @@ class SomeComponent {
204
204
createRootEl();
205
205
expect(()=>ref.bootstrap(SomeComponent))
206
206
.toThrowError(
207
-
'Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.');
207
+
'NG0405: Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.');
`The module MyModule was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`;
304
+
`NG0403: The module MyModule was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`;
0 commit comments