mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The upgrade package duplicaes some of code due to relative imports between entry-points. This caused bundlers to inline shared functions twice in both FESM outputs. This is an acceptable limitation and we are not changing this because the primary entry-point is not synced into G3. It's non-trivial to remove these cross relative imports right now because the primary entry-point is not even built in G3 so instead we just ignore the relative imports using a re-export file. Note: To simplify this change, we continue using namespace exports as exporting individual named exports for all these possible usages is rather cumbersome and also we had existing namespace imports for e.g. `angular1.ts`. The code of upgrade is rarely edited these days PR Close #51500
24 lines
845 B
TypeScript
24 lines
845 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
/**
|
|
* Note: We intentionally use cross entry-point relative paths here. This
|
|
* is because the primary entry-point is deprecated and we also don't have
|
|
* it available in G3.
|
|
*/
|
|
|
|
// @ng_package: ignore-cross-repo-import
|
|
import * as ɵangular1 from '../src/common/src/angular1';
|
|
// @ng_package: ignore-cross-repo-import
|
|
import * as ɵconstants from '../src/common/src/constants';
|
|
// @ng_package: ignore-cross-repo-import
|
|
import * as ɵupgradeHelper from '../src/common/src/upgrade_helper';
|
|
// @ng_package: ignore-cross-repo-import
|
|
import * as ɵutil from '../src/common/src/util';
|
|
|
|
export {ɵangular1, ɵconstants, ɵupgradeHelper, ɵutil};
|