How to use the browserslist.parseConfig function in browserslist

To help you get started, we’ve selected a few browserslist 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 / transformers / babel / src / getBabelTargets.js View on Github external
async function loadBrowserslist(config): Promise {
  let browserslistConfig = await config.getConfig(
    ['browserslist', '.browserslistrc'],
    {
      parse: false
    }
  );

  if (browserslistConfig) {
    return browserslist.parseConfig(browserslistConfig);
  }
}