const Babili = require('babili-webpack-plugin')

module.exports = {
  plugins: [
    new Babili({
      removeConsole: false,
      removeDebugger: true
    })
  ]
}

const Babili = require('babili-webpack-plugin')
const {ENV} = require('./paths')

module.exports = {
  plugins: [
    new Babili({
      removeConsole: false,
      removeDebugger: true
    }, {
      sourceMap: ENV === 'production' ? 'hidden-source-map' : 'inline-source-map',
    })
  ]
}

Fix broken source map in production
Fix broken source map in production
