Skip to content

Latest commit

 

History

History
118 lines (106 loc) · 3.81 KB

api.md

File metadata and controls

118 lines (106 loc) · 3.81 KB

API Report File for "@builder.io/qwik"

Do not edit this file. It is a report generated by API Extractor.

import type { BuildOptions } from 'esbuild';

// @alpha (undocumented)
export function createClientEsbuildOptions(optimizer: Optimizer): Promise<any>;

// @alpha (undocumented)
export function createEsbuilder(opts: {
  outDir: string;
  clientOpts?: BuildOptions;
  serverOpts?: BuildOptions;
}): {
  build: () => Promise<EsbuildResult>;
  dispose: () => void;
};

// @alpha (undocumented)
export function createServerEsbuildOptions(optimizer: Optimizer): Promise<any>;

// @alpha
export function createTimer(): () => number;

// @alpha
export function getQwikLoaderScript(opts?: { events?: string[]; debug?: boolean }): string;

// @alpha
export class Optimizer {
  // Warning: (ae-forgotten-export) The symbol "OptimizerOptions" needs to be exported by the entry point index.d.ts
  constructor(opts?: OptimizerOptions);
  // (undocumented)
  enableCache(useCache: boolean): void;
  // (undocumented)
  getBaseUrl(): string;
  // Warning: (ae-forgotten-export) The symbol "EntryPointOptions" needs to be exported by the entry point index.d.ts
  //
  // (undocumented)
  getEntryInputs(opts: EntryPointOptions): string[];
  // (undocumented)
  getMode(): Mode;
  // (undocumented)
  getRootDir(): string;
  // (undocumented)
  getSourceMapOption(): SourceMapOption;
  // (undocumented)
  getTsconfig(): Promise<any>;
  // (undocumented)
  getTsconfigSync(): any;
  // (undocumented)
  getTypeScript(): Promise<any>;
  // (undocumented)
  getTypeScriptSync(): any;
  // (undocumented)
  isCacheEnabled(): boolean;
  // (undocumented)
  isDev(): boolean;
  // (undocumented)
  postBuild(outFile: OutputFile): OutputFile;
  // Warning: (ae-forgotten-export) The symbol "ResolveModuleOptions" needs to be exported by the entry point index.d.ts
  // Warning: (ae-forgotten-export) The symbol "ResolveModuleResult" needs to be exported by the entry point index.d.ts
  //
  // (undocumented)
  resolveModuleSync(opts: ResolveModuleOptions): ResolveModuleResult;
  // (undocumented)
  setBaseUrl(baseUrl: string): void;
  // (undocumented)
  setEntryInputs(entryInputs: string[]): void;
  // Warning: (ae-forgotten-export) The symbol "Mode" needs to be exported by the entry point index.d.ts
  //
  // (undocumented)
  setMode(mode: Mode): void;
  // (undocumented)
  setRootDir(rootDir: string): void;
  // Warning: (ae-forgotten-export) The symbol "SourceMapOption" needs to be exported by the entry point index.d.ts
  //
  // (undocumented)
  setSourceMapOption(sourceMapOpt: SourceMapOption): void;
  // (undocumented)
  setTsconfig(tsconfig: any): void;
  // (undocumented)
  setTypeScript(ts: any): void;
  // Warning: (ae-forgotten-export) The symbol "TransformModuleOptions" needs to be exported by the entry point index.d.ts
  // Warning: (ae-forgotten-export) The symbol "TransformModuleResult" needs to be exported by the entry point index.d.ts
  //
  // (undocumented)
  transformModule(opts: TransformModuleOptions): Promise<TransformModuleResult>;
  // (undocumented)
  transformModuleSync(opts: TransformModuleOptions): TransformModuleResult;
}

// @public (undocumented)
export interface OutputFile {
  // (undocumented)
  path: string;
  // Warning: (ae-forgotten-export) The symbol "OutputPlatform" needs to be exported by the entry point index.d.ts
  //
  // (undocumented)
  platform?: OutputPlatform;
  // (undocumented)
  text: string;
}

// @public
export function writeOutput(opts: {
  dir: string;
  files: OutputFile[];
  emptyDir?: boolean;
}): Promise<void>;

// Warnings were encountered during analysis:
//
// dist-dev/tsc-out/src/optimizer/esbuild/builder.d.ts:11:5 - (ae-forgotten-export) The symbol "EsbuildResult" needs to be exported by the entry point index.d.ts

// (No @packageDocumentation comment for this package)