import type Config from 'webpack-chain' ; import webpack from 'webpack' ; export default ( ) => ( config ) => { config . plugin ( 'moment-locale-replace' ) . use ( webpack . ContextReplacementPlugin , [ /moment[/\\]locale$/ , /en-gb|ru/ ] ) ; } ;