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.
pull/148576/head
Yuki Hattori 2022-05-03 01:33:51 +09:00 committed by GitHub
parent 46257aae7a
commit 82ad6afd36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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