function magic_string_bundle(inputs, filename = 'bundle.js', separator = '\n') {
	const bundle = new Bundle({ separator });
	inputs.forEach(({ code, filename }) => {
		bundle.addSource({
			filename,
			content: typeof code === 'string' ? new MagicString(code) : code
		});
	});
	return {
		code: bundle.toString(),
		map: bundle.generateMap({
			source: filename,
			hires: true,
			includeContent: false
		})
	};
}
@param {Array<{ code: string | MagicString, filename: string }>} inputs
@param {string} filename
@param {string} separator
@returns