Skip to content

Commit f943d3a

Browse files
alan-agius4vikerman
authored andcommitted
refactor(@angular-devkit/build-angular): rename ngModuleDef to ɵmod
1 parent 6b0aec4 commit f943d3a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/angular_devkit/build_angular/plugins/webpack/analytics.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class NgBuildAnalyticsPlugin {
164164

165165
// Check whether this is an Ivy app so that it can reported as part of analytics.
166166
if (!this._stats.isIvy) {
167-
if (numIvyComponents > 0 || module._source.source().includes('ngModuleDef')) {
167+
if (numIvyComponents > 0 || module._source.source().includes('ɵmod')) {
168168
this._stats.isIvy = true;
169169
}
170170
}

packages/angular_devkit/build_angular/test/browser/lazy-module_spec_large.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('Browser Builder lazy modules', () => {
8080
if (!veEnabled) {
8181
const data = await files['lazy-lazy-module.js'];
8282
expect(data).not.toBeUndefined('Lazy module output bundle does not exist');
83-
expect(data).toContain('LazyModule.ngModuleDef');
83+
expect(data).toContain('LazyModule.ɵmod');
8484
} else {
8585
expect(files['lazy-lazy-module-ngfactory.js']).not.toBeUndefined();
8686
}
@@ -270,7 +270,7 @@ describe('Browser Builder lazy modules', () => {
270270
if (!veEnabled) {
271271
const data = await files['src-app-lazy-lazy-module.js'];
272272
expect(data).not.toBeUndefined('Lazy module output bundle does not exist');
273-
expect(data).toContain('LazyModule.ngModuleDef');
273+
expect(data).toContain('LazyModule.ɵmod');
274274
} else {
275275
expect(files['src-app-lazy-lazy-module-ngfactory.js']).not.toBeUndefined();
276276
}

packages/angular_devkit/build_angular/test/server/base_spec_large.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('Server Builder', () => {
3737
if (veEnabled) {
3838
expect(content).toMatch(/AppServerModuleNgFactory/);
3939
} else {
40-
expect(content).toMatch(/AppServerModule\.ngModuleDef/);
40+
expect(content).toMatch(/AppServerModule\.ɵmod/);
4141
}
4242

4343
await run.stop();
@@ -148,7 +148,7 @@ describe('Server Builder', () => {
148148
if (veEnabled) {
149149
expect(content).toMatch(/AppServerModuleNgFactory/);
150150
} else {
151-
expect(content).toMatch(/AppServerModule\.ngModuleDef/);
151+
expect(content).toMatch(/AppServerModule\.ɵmod/);
152152
}
153153
}),
154154
take(1),

packages/angular_devkit/build_optimizer/src/transforms/wrap-enums_spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe('wrap enums and classes transformer', () => {
124124
class ApplicationModule {
125125
constructor(appRef) { }
126126
}
127-
ApplicationModule.ngModuleDef = ɵɵdefineNgModule({ type: ApplicationModule });
127+
ApplicationModule.ɵmod = ɵɵdefineNgModule({ type: ApplicationModule });
128128
/*@__PURE__*/ setClassMetadata(ApplicationModule, [{
129129
type: NgModule,
130130
args: [{ providers: APPLICATION_MODULE_PROVIDERS }]
@@ -148,7 +148,7 @@ describe('wrap enums and classes transformer', () => {
148148
it('with nested static properties in IIFE', () => {
149149
const input = tags.stripIndent`
150150
class CommonModule { }
151-
CommonModule.ngModuleDef = defineNgModule({
151+
CommonModule.ɵmod = defineNgModule({
152152
type: CommonModule
153153
}), CommonModule.ngInjectorDef = defineInjector({
154154
factory: function (t) {

0 commit comments

Comments
 (0)