refactor(core): rename ngLocaleIdDef to ɵloc (#33212)
LocaleID 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 ngLocaleIdDef to loc. 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 #33212
This commit is contained in:

committed by
Matias Niemelä

parent
78214e72ea
commit
1a8bd22fa3
@ -324,7 +324,7 @@ export class NgModuleDecoratorHandler implements DecoratorHandler<NgModuleAnalys
|
||||
|
||||
if (this.localeId) {
|
||||
res.push({
|
||||
name: 'ngLocaleIdDef',
|
||||
name: 'ɵloc',
|
||||
initializer: new LiteralExpr(this.localeId),
|
||||
statements: [],
|
||||
type: STRING_TYPE
|
||||
|
Reference in New Issue
Block a user