8e401aecfd
Follow-up to https://github.com/vercel/next.js/pull/36612 this updates to eagerly load the swc bindings unless babel is being used so that we don't wait for the transform calls to initialize swc. Eagerly loading in jest also allows us to fallback to the wasm bindings when previously we couldn't since they needed to wait for the import.
11 lines
633 B
TypeScript
11 lines
633 B
TypeScript
export function isWasm(): Promise<boolean>
|
|
export function transform(src: string, options?: any): Promise<any>
|
|
export function transformSync(src: string, options?: any): any
|
|
export function minify(src: string, options: any): Promise<string>
|
|
export function minifySync(src: string, options: any): string
|
|
export function bundle(options: any): Promise<any>
|
|
export function parse(src: string, options: any): any
|
|
export const lockfilePatchPromise: { cur?: Promise<void> }
|
|
export function initCustomTraceSubscriber(traceFileName?: string): void
|
|
export function teardownTraceSubscriber(): void
|
|
export function loadBindings(): Promise<void>
|