@angular-devkit/build-angular
Version:
Angular Webpack Build Facade
23 lines (22 loc) • 1.12 kB
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
*/
import type { OutputFile, PluginBuild } from 'esbuild';
import { LoadResultCache } from '../load-result-cache';
import { BundleStylesheetOptions } from '../stylesheets/bundle-options';
/**
* Sets up esbuild resolve and load callbacks to support Angular JIT mode processing
* for both Component stylesheets and templates. These callbacks work alongside the JIT
* resource TypeScript transformer to convert and then bundle Component resources as
* static imports.
* @param build An esbuild {@link PluginBuild} instance used to add callbacks.
* @param styleOptions The options to use when bundling stylesheets.
* @param stylesheetResourceFiles An array where stylesheet resources will be added.
*/
export declare function setupJitPluginCallbacks(build: PluginBuild, styleOptions: BundleStylesheetOptions & {
inlineStyleLanguage: string;
}, stylesheetResourceFiles: OutputFile[], cache?: LoadResultCache): void;