exports.modifyWebpackConfig = function(config, stage) {
  config.loader("imports", function(cfg) {
    cfg.loader = "imports-loader?this=>window,fix=>module.exports=0"
    cfg.test = require.resolve("snapsvg")
    return cfg
  })

  return config
}