ember-auto-import
Version:
Zero-config import from NPM packages
28 lines (27 loc) • 925 B
TypeScript
import type { TreeType } from './analyzer';
export type BundleName = 'app' | 'tests';
export type BundleType = 'js' | 'css';
interface OutputPaths {
vendor: {
js: string;
css: string;
};
app: {
html: string;
};
}
export default class BundleConfig {
private outputPaths;
constructor(outputPaths: OutputPaths);
get names(): ReadonlyArray<BundleName>;
isBuiltInBundleName(name: string): name is BundleName;
get types(): ReadonlyArray<BundleType>;
bundleEntrypoint(name: BundleName, type: BundleType): string;
maybeBundleEntrypoint(bundleName: string, type: BundleType): string | undefined;
bundleNameForEntrypoint(entrypoint: string, type: BundleType): BundleName | undefined;
bundleForTreeType(treeType: TreeType): BundleName;
bundleForPath(path: string): BundleName;
get lazyChunkPath(): string;
htmlEntrypoints(): string[];
}
export {};