module.exports = {
	entry: {
		main: './ui.main.js',
		art: './ui.art.js',
		mosaic: './ui.mosaic.js',
		vanilla: './vanilla/ui.main.js',
	},
	output: {
		path: __dirname,
		filename: 'bundle.[name].js',
		sourceMapFilename: 'bundle.[name].js.map',
	},
	devtool: 'cheap-source-map',
	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				use: {
					loader: 'babel-loader',
					query: {
						presets: ["@babel/preset-react", [
							"@babel/preset-env", {
								useBuiltIns: 'usage',
								targets: {
									browsers: [
										"firefox esr",
										"last 2 chrome version",
										"last 1 ios version",
										"last 1 and_chr version",
										"last 1 edge version",
										"ie 11",
									],
								},
							},
						]],
						plugins: [
							"@babel/plugin-transform-react-jsx",
							"@babel/plugin-proposal-object-rest-spread",
						],
					},
				},
			},
		],
	},
};

module.exports = {
	entry: {
		main: './ui.main.js',
		art: './ui.art.js',
		mosaic: './ui.mosaic.js',
		vanilla: './vanilla/ui.main.js',
	},
	output: {
		path: __dirname,
		filename: 'bundle.[name].js',
		sourceMapFilename: 'bundle.[name].js.map',
	},
	devtool: 'cheap-source-map',
	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				use: {
					loader: 'babel-loader',
					query: {
						presets: ["@babel/preset-react", [
							"@babel/preset-env", {
								useBuiltIns: 'usage',
								targets: {
									browsers: [
										"firefox esr",
										"last 2 chrome version",
										"last 1 ios version",
										"last 1 and_chr version",
										"last 1 edge version",
									],
								},
							},
						]],
						plugins: [
							"@babel/plugin-transform-react-jsx",
							"@babel/plugin-proposal-object-rest-spread",
						],
					},
				},
			},
		],
	},
};

Remove ie11 support, it wasn't even working because babel-polyfill doesn't cover fetch & I don't even