How to use the @parcel/logger.setOptions function in @parcel/logger

To help you get started, we’ve selected a few @parcel/logger 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 / parcel-bundler / src / Bundler.js View on Github external
node: require.resolve('./builtins/loaders/node/html-loader'),
    });

    this.pending = false;
    this.loadedAssets = new Map();
    this.watchedAssets = new Map();

    this.farm = null;
    this.watcher = null;
    this.hmr = null;
    this.bundleHashes = null;
    this.error = null;
    this.buildQueue = new PromiseQueue(this.processAsset.bind(this));
    this.rebuildTimeout = null;

    logger.setOptions(this.options);
  }
github parcel-bundler / parcel / src / core / core / src / Bundler.js View on Github external
this.addBundleLoader('js', require('@parcel/loader-js'));
    this.addBundleLoader('html', require('@parcel/loader-html'));

    this.pending = false;
    this.loadedAssets = new Map();
    this.watchedAssets = new Map();

    this.farm = null;
    this.watcher = null;
    this.hmr = null;
    this.bundleHashes = null;
    this.error = null;
    this.buildQueue = new PromiseQueue(this.processAsset.bind(this));
    this.rebuildTimeout = null;

    logger.setOptions(this.options);
  }