mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-20 05:24:57 +08:00
Newer versions of the babel packages allow for removing some types packages as well as some helper packages. The `@babel/template` package export used within the CLI is accessible from the `@babel/core` package which allows removal of `@babel/template` as a direct dependency. Also, the `@babel/plugin-proposal-async-generator-functions` package has been transitioned to `@babel/plugin-transform-async-generator-functions` due to async generators being merged into the ECMAScript standard. Minor code cleanup based on the type cleanup was also performed in the build optimizer babel passes.
18 lines
574 B
TypeScript
18 lines
574 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
|
|
*/
|
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
// Workaround for https://github.com/bazelbuild/rules_nodejs/issues/1033
|
|
// Alternative approach instead of https://github.com/angular/angular/pull/33226
|
|
declare module '@babel/core' {
|
|
export * from '@types/babel__core';
|
|
}
|
|
declare module '@babel/generator' {
|
|
export { default } from '@types/babel__generator';
|
|
}
|