## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### BabelConfig

Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)

**Properties**

-   `file` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The location of config file
-   `useConfig` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether to use this config file

### constructor

**Parameters**

-   `options`  
    -   `options.cwd` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** The path to find config file (optional, default `process.cwd()`)

### babel

Check if babel config exists and whether to use it

**Parameters**

-   `buildConfigChain` **[function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** 

Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;BabelConfig>** 

### postcss

Get PostCSS config

Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)&lt;Config>** Same as [postcss-load-config](https://github.com/michael-ciniawsky/postcss-load-config)

## LICENSE

MIT © [EGOIST](https://github.com/egoist)
