refactor(upgrade): re-export the new static upgrade APIs on new entry
Add upgrade-static.umd.js bundles This allows depending on it without getting a transitive dependency on compiler. BREAKING CHANGE: Four newly added APIs in 2.2.0-beta: downgradeComponent, downgradeInjectable, UpgradeComponent, and UpgradeModule are no longer exported by @angular/upgrade. Import these from @angular/upgrade/static instead.
This commit is contained in:
13
modules/@angular/upgrade/static.ts
Normal file
13
modules/@angular/upgrade/static.ts
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. 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
|
||||
*/
|
||||
|
||||
export {downgradeComponent} from './src/aot/downgrade_component';
|
||||
export {downgradeInjectable} from './src/aot/downgrade_injectable';
|
||||
export {UpgradeComponent} from './src/aot/upgrade_component';
|
||||
export {UpgradeModule} from './src/aot/upgrade_module';
|
||||
// This file only reexports content of the `src` folder. Keep it that way.
|
Reference in New Issue
Block a user