UNPKG

react-scripts-intlayer

Version:

Integrate Intlayer with Create React App using custom React scripts for internationalization i18n and advanced Webpack configurations

20 lines 891 B
import { CracoConfig, CracoConfigOverride, CracoPlugin, WebpackConfigOverride } from "@craco/types"; import { Configuration } from "webpack"; //#region src/intlayerCracoPlugin.d.ts /** * Override the final CRA Webpack config. * We explicitely type the return as WebpackConfig to solve TS2742. */ declare const overrideWebpackConfig: ({ webpackConfig }: WebpackConfigOverride) => Configuration; /** * Override the CRACO config itself to set up aliases, fallbacks, and plugins. */ declare const overrideCracoConfig: ({ cracoConfig }: CracoConfigOverride) => CracoConfig; /** * A CRACO plugin that adds the Intlayer configuration to the webpack configuration * and sets the environment variables. */ declare const intlayerCracoPlugin: CracoPlugin; //#endregion export { intlayerCracoPlugin, overrideCracoConfig, overrideWebpackConfig }; //# sourceMappingURL=intlayerCracoPlugin.d.ts.map