Skip to content

Commit

Permalink
refactor(material/core): remove extra version constant (#23482)
Browse files Browse the repository at this point in the history
Cleans up an extra `VERSION` constant that was put in place for something that shouldn't be an issue anymore.
  • Loading branch information
crisbeto authored Jan 13, 2022
1 parent 552ce1f commit 275b05e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/material/core/common-behaviors/common-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@

import {HighContrastModeDetector} from '@angular/cdk/a11y';
import {BidiModule} from '@angular/cdk/bidi';
import {Inject, InjectionToken, NgModule, Optional, Version} from '@angular/core';
import {Inject, InjectionToken, NgModule, Optional} from '@angular/core';
import {VERSION as CDK_VERSION} from '@angular/cdk';
import {DOCUMENT} from '@angular/common';
import {_isTestEnvironment} from '@angular/cdk/platform';

// Private version constant to circumvent test/build issues,
// i.e. avoid core to depend on the @angular/material primary entry-point
// Can be removed once the Material primary entry-point no longer
// re-exports all secondary entry-points
const VERSION = new Version('0.0.0-PLACEHOLDER');
import {VERSION} from '../version';

/** @docs-private */
export function MATERIAL_SANITY_CHECKS_FACTORY(): SanityChecks {
Expand Down

0 comments on commit 275b05e

Please sign in to comment.