mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
cf1844bcce
Refactor the devtools optimization esbuild plugin to use JavaScriptTransformer from @angular/build/private.
16 lines
424 B
TypeScript
16 lines
424 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
export interface OptimizationOptions {
|
|
optimize?: {
|
|
isSideEffectFree?: (absoluteDiskPath: string) => boolean;
|
|
};
|
|
enableLinker?: boolean;
|
|
}
|
|
|
|
export function createEsbuildAngularOptimizePlugin(opts: OptimizationOptions): Promise<any> |