module.exports = {
	entry: {
		'test-templates': 'test-templates.js',
		'test-lib': 'test-lib.js'
	},
	output: {
		path: 'target/test-classes/tests/js/assets/js',
		filename: '[name].js'
	},
	devtool: 'source-map',
	resolve: {
		root: __dirname,
		modulesDirectories: [
			'node_modules',
			'src/main/js/modules',
			'src/test/js/modules'
		]
	},
	module: {
		loaders: [
			{
				test: /\.js?$/,
				exclude: /(node_modules)/,
				loader: 'babel',
				query: {
					presets: ['es2015-native-generators'],
					plugins: ['babel-plugin-transform-flow-strip-types']
				}
			}
		]
	}
};
