Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async init(): Promise {
if (this.#initialized) {
return;
}
let resolvedOptions: ParcelOptions = await resolveOptions(
this.#initialOptions,
);
this.#resolvedOptions = resolvedOptions;
await createCacheDir(resolvedOptions.outputFS, resolvedOptions.cacheDir);
let {config} = await loadParcelConfig(
path.join(resolvedOptions.inputFS.cwd(), 'index'),
resolvedOptions,
);
this.#config = config;
this.#farm =
this.#initialOptions.workerFarm ??
createWorkerFarm({
patchConsole: resolvedOptions.patchConsole,
});
this.#assetGraphBuilder = new AssetGraphBuilder();
this.#runtimesAssetGraphBuilder = new AssetGraphBuilder();
await Promise.all([