build/lib/extensions.ts/buildExtensionMedia
export async function buildExtensionMedia(isWatch: boolean, outputRoot?: string) {
	return Promise.all([
		webpackExtensions('webpacking extension media', isWatch, webpackMediaConfigFiles.map(p => {
			return {
				configPath: path.join(extensionsPath, p),
				outputRoot: outputRoot ? path.join(root, outputRoot, path.dirname(p)) : undefined
			};
		})),
		esbuildExtensions('esbuilding extension media', isWatch, esbuildMediaScripts.map(p => ({
			script: path.join(extensionsPath, p),
			outputRoot: outputRoot ? path.join(root, outputRoot, path.dirname(p)) : undefined
		}))),
	]);
}