webpack = require 'webpack'
_ = require 'lodash'
config = _.clone require './config'

config.entry += '/src/server-glue/module'
config.plugins = config.plugins.concat(
	new webpack.DefinePlugin(
		'process.browser': false

		'process.env.CONFIG_LOADER_DISABLED': false
		'process.env.SBVR_SERVER_ENABLED': false
	)
	# When we're compiling the module build we want to always ignore the server build file
	new webpack.IgnorePlugin(/server/, /server-glue/)
)

module.exports = config
