Fixes microsoft/vscode#147936 (#148503)

By changing output esbuild setting for Markdown preview scripts to iife,
prevents global namespace pollution and reduces possibility of breaking
the preview by contributions from other extensions.
This commit is contained in:
Yuki Hattori
2022-05-03 01:33:51 +09:00
committed by GitHub
parent 46257aae7a
commit 82ad6afd36

View File

@@ -28,7 +28,7 @@ function build() {
bundle: true,
minify: true,
sourcemap: false,
format: 'esm',
format: 'iife',
outdir: outDir,
platform: 'browser',
target: ['es2020'],