refactor(core): rename ngInjectorDef to ɵinj (#33151)
Injector defs are not considered public API, so the property that contains them should be prefixed with Angular's marker for "private" ('ɵ') to discourage apps from relying on def APIs directly. This commit adds the prefix and shortens the name from ngInjectorDef to inj. This is because property names cannot be minified by Uglify without turning on property mangling (which most apps have turned off) and are thus size-sensitive. PR Close #33151
This commit is contained in:

committed by
Matias Niemelä

parent
3e14c2d02c
commit
cda9248b33
@ -179,7 +179,7 @@ module.exports =
|
||||
|
||||
.config(function(filterMembers) {
|
||||
filterMembers.notAllowedPatterns.push(
|
||||
/^ng[A-Z].*Def$/
|
||||
/^ng[A-Z].*Def$/, /^ɵ/
|
||||
);
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user