message: Fix Karma warning for webpack build (closes
diff: const path = require('path')
  +const webpack = require('webpack')
  const isProduction = process.env.NODE_ENV === 'production'
  @@ -25,7 +26,8 @@ const config = {
  ]
  : []
  )
  - }
  + },
  + plugins: getPlugins()
  }
  module.exports = config
  @@ -61,3 +63,14 @@ function getOutputConfig() {
  }
  }
  }
  +
  +function getPlugins() {
  + return process.env.NODE_ENV === 'test'
  + ? [
  + new webpack.ContextReplacementPlugin(
  + /power-assert-formatter[\\/]lib/,
  + new RegExp('^\\./.*\\.js$')
  + )
  + ]
  + : undefined
  +}
  