function addAstroturfLoader(rule, loaderOptions, loaderPath) {
  rule
    .use('astroturf-loader')
    .loader(loaderPath)
    .options(loaderOptions)
}
@private
@param {import('webpack-chain').Rule} rule
@param {AstroturfOptions.loaderOptions} loaderOptions
@param {string} loaderPath