"use strict";

const HotModuleReplacementPlugin =
	require("../../../../").HotModuleReplacementPlugin;

/** @type {import("../../../../").Configuration} */
module.exports = {
	entry: {
		first: ["./shared", "./first"],
		second: ["./shared", "./second"]
	},
	target: "web",
	output: {
		filename: "[name].js"
	},
	optimization: {
		splitChunks: {
			cacheGroups: {
				vendor: {
					chunks: "all",
					name: "vendor",
					minChunks: 2,
					enforce: true
				}
			}
		}
	},
	plugins: [new HotModuleReplacementPlugin()]
};
