How to use the @parcel/cache.createCacheDir function in @parcel/cache

To help you get started, we’ve selected a few @parcel/cache examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github parcel-bundler / parcel / packages / core / core / src / Parcel.js View on Github external
async init(): Promise {
    if (this.#initialized) {

    let resolvedOptions: ParcelOptions = await resolveOptions(
    this.#resolvedOptions = resolvedOptions;
    await createCacheDir(resolvedOptions.outputFS, resolvedOptions.cacheDir);

    let {config} = await loadParcelConfig(
      path.join(resolvedOptions.inputFS.cwd(), 'index'),
    this.#config = config;
    this.#farm =
      this.#initialOptions.workerFarm ??
        patchConsole: resolvedOptions.patchConsole,

    this.#assetGraphBuilder = new AssetGraphBuilder();
    this.#runtimesAssetGraphBuilder = new AssetGraphBuilder();

    await Promise.all([


Latest version published 3 months ago

Package Health Score

89 / 100
Full package analysis

Popular @parcel/cache functions

Similar packages