function defaults (config) {
  // defaults
  const defaults = {
    plugins,
    external
  }
  // defaults.output
  config.output = config.output.map(output => {
    return Object.assign({
      sourcemap: false,
      name: className,
    }, output)
  })
  return Object.assign(defaults, config)
}