function resolve(config) {
  const strategy = { 'resolve.extensions': 'prepend' }
  const merge = webpackMerge.smartStrategy(strategy)

  return () => prevConfig =>
    merge(prevConfig, {
      resolve: config
    })
}
@see https://webpack.js.org/configuration/resolve/