2025-07-07 14:18:21 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google LLC
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
2026-01-12 07:50:25 +00:00
|
|
|
* found in the LICENSE file at https://angular.dev/license
|
2025-07-07 14:18:21 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import {PluginItem} from '@babel/core';
|
|
|
|
|
|
|
|
|
|
export interface OptimizationOptions {
|
|
|
|
|
enableLinker?: {
|
|
|
|
|
ensureNoPartialDeclaration: boolean;
|
|
|
|
|
filterPaths?: RegExp;
|
|
|
|
|
linkerOptions?: object;
|
|
|
|
|
};
|
|
|
|
|
optimize?: {
|
|
|
|
|
isSideEffectFree?: (absoluteDiskPath: string) => boolean;
|
|
|
|
|
};
|
|
|
|
|
downlevelAsyncGeneratorsIfPresent?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function createEsbuildAngularOptimizePlugin(opts: OptimizationOptions, additionalBabelPlugins?: PluginItem[]): Promise<any>
|