UNPKG

601 BTypeScriptView Raw
1import { BundleResult, FileRegistry } from "./contracts";
2export declare class Bundler {
3 private fileRegistry;
4 private readonly projectDirectory?;
5 private usedImports;
6 private importsByFile;
7 constructor(fileRegistry?: FileRegistry, projectDirectory?: string | undefined);
8 bundle(file: string, dedupeGlobs?: string[], includePaths?: string[], ignoredImports?: string[]): Promise<BundleResult>;
9 private isExtensionExists;
10 private _bundle;
11 private replaceLastOccurance;
12 private removeImportsFromComments;
13 private resolveImport;
14 private globFilesOrEmpty;
15}