UNPKG

craco-babel-loader

Version:

Rewire `babel-loader` loader in your `create-react-app` project using `craco`.

21 lines (20 loc) 653 B
export type Condition = string | RegExp | Array<Condition> | ((arg: any) => boolean) | { test?: Condition; include?: Condition; exclude?: Condition; and?: Array<Condition>; or?: Array<Condition>; not?: Array<Condition>; }; export type LoaderRule = { include?: Condition; exclude?: Condition; }; export type OverrideWebpackConfigParams = { webpackConfig: any; pluginOptions: { includes?: LoaderRule[]; excludes?: LoaderRule[]; }; }; export declare const overrideWebpackConfig: ({ webpackConfig, pluginOptions: { includes, excludes }, }: OverrideWebpackConfigParams) => any;