Skip to content

Commit 6cec795

Browse files
crisbetoandrewseguin
authored andcommitted
refactor(material/core): remove extra version constant (#23482)
Cleans up an extra `VERSION` constant that was put in place for something that shouldn't be an issue anymore. (cherry picked from commit 275b05e)
1 parent 00bac65 commit 6cec795

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/material/core/common-behaviors/common-module.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@
88

99
import {HighContrastModeDetector} from '@angular/cdk/a11y';
1010
import {BidiModule} from '@angular/cdk/bidi';
11-
import {Inject, InjectionToken, NgModule, Optional, Version} from '@angular/core';
11+
import {Inject, InjectionToken, NgModule, Optional} from '@angular/core';
1212
import {VERSION as CDK_VERSION} from '@angular/cdk';
1313
import {DOCUMENT} from '@angular/common';
1414
import {_isTestEnvironment} from '@angular/cdk/platform';
15-
16-
// Private version constant to circumvent test/build issues,
17-
// i.e. avoid core to depend on the @angular/material primary entry-point
18-
// Can be removed once the Material primary entry-point no longer
19-
// re-exports all secondary entry-points
20-
const VERSION = new Version('0.0.0-PLACEHOLDER');
15+
import {VERSION} from '../version';
2116

2217
/** @docs-private */
2318
export function MATERIAL_SANITY_CHECKS_FACTORY(): SanityChecks {

0 commit comments

Comments
 (0)