import merge from 'webpack-merge' ; import getCommonConfig from './common' ; import { Configuration , BalmScripts } from '@balm-core/index' ; function getDevConfig ( webpack , scripts ) { return merge ( getCommonConfig ( webpack , scripts ) , { mode : 'development' , plugins : [ new webpack . HotModuleReplacementPlugin ( ) ] , devtool : scripts . sourceMap || 'cheap-module-eval-source-map' } ) ; } export default getDevConfig ;