UNPKG

536 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { RawSourceMap } from 'source-map';
9export interface Options {
10 sideEffectFreeModules?: string[];
11 angularCoreModules?: string[];
12}
13export default function optimizer(options: Options): {
14 name: string;
15 transform: (content: string, id: string) => {
16 code: string;
17 map: RawSourceMap;
18 } | null;
19};