You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
879 B

2 months ago
import type { Plugin } from 'vite';
import type { UniXCompiler } from '@dcloudio/uni-uts-v1';
export declare function getWorkers(): Record<string, string>;
export declare function resolveWorkersRootDir(): string;
export declare function getWorkersRootDirs(): string[];
/**
* utsworker
* export class MyWorkerTask extends WorkerTaskImpl {}
* @param dir
*/
export declare function initWorkers(workersDirs: string[], rootDir: string): Record<string, string>;
export declare function uniWorkersPlugin(): Plugin;
export declare function resolveWorkersDir(inputDir: string): Array<string>;
export declare function uniJavaScriptWorkersPlugin(): Plugin;
export declare function initUniXCompilerRootWorkers(rootDir: string, compiler: UniXCompiler): Promise<void>;