From eaf352e6d1dc3b9183cb17641260b8bbd35c0702 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 8 Mar 2022 17:54:16 -0800 Subject: [PATCH] Hook up watch properly for extension build scripts --- extensions/markdown-language-features/esbuild-notebook.js | 1 + extensions/markdown-language-features/esbuild-preview.js | 1 + extensions/markdown-math/esbuild.js | 1 + extensions/notebook-renderers/esbuild.js | 1 + extensions/simple-browser/esbuild-preview.js | 1 + 5 files changed, 5 insertions(+) diff --git a/extensions/markdown-language-features/esbuild-notebook.js b/extensions/markdown-language-features/esbuild-notebook.js index 202e4677042..bd5a325438d 100644 --- a/extensions/markdown-language-features/esbuild-notebook.js +++ b/extensions/markdown-language-features/esbuild-notebook.js @@ -28,5 +28,6 @@ esbuild.build({ outdir: outDir, platform: 'browser', target: ['es2020'], + watch: isWatch, incremental: isWatch, }).catch(() => process.exit(1)); diff --git a/extensions/markdown-language-features/esbuild-preview.js b/extensions/markdown-language-features/esbuild-preview.js index 692e45c9252..727353c6e44 100644 --- a/extensions/markdown-language-features/esbuild-preview.js +++ b/extensions/markdown-language-features/esbuild-preview.js @@ -29,5 +29,6 @@ esbuild.build({ outdir: outDir, platform: 'browser', target: ['es2020'], + watch: isWatch, incremental: isWatch, }).catch(() => process.exit(1)); diff --git a/extensions/markdown-math/esbuild.js b/extensions/markdown-math/esbuild.js index ab5ee7b75c3..dd94d2e1eed 100644 --- a/extensions/markdown-math/esbuild.js +++ b/extensions/markdown-math/esbuild.js @@ -30,6 +30,7 @@ esbuild.build({ outdir: outDir, platform: 'browser', target: ['es2020'], + watch: isWatch, incremental: isWatch, }).catch(() => process.exit(1)); diff --git a/extensions/notebook-renderers/esbuild.js b/extensions/notebook-renderers/esbuild.js index 5b54e668b3b..11a04a0a982 100644 --- a/extensions/notebook-renderers/esbuild.js +++ b/extensions/notebook-renderers/esbuild.js @@ -28,5 +28,6 @@ esbuild.build({ outdir: outDir, platform: 'browser', target: ['es2020'], + watch: isWatch, incremental: isWatch, }).catch(() => process.exit(1)); diff --git a/extensions/simple-browser/esbuild-preview.js b/extensions/simple-browser/esbuild-preview.js index cf278788b9b..d6447532501 100644 --- a/extensions/simple-browser/esbuild-preview.js +++ b/extensions/simple-browser/esbuild-preview.js @@ -37,5 +37,6 @@ esbuild.build({ outdir: outDir, platform: 'browser', target: ['es2020'], + watch: isWatch, incremental: isWatch, }).catch(() => process.exit(1));