Convert esbuild scripts to modules

Planning to convert to typescript but want to do it in a few smaller steps
This commit is contained in:
Matt Bierner
2025-08-07 20:04:44 -07:00
parent 88dc5d301c
commit f272e51947
14 changed files with 49 additions and 47 deletions

View File

@@ -0,0 +1,18 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// @ts-check
import path from 'path';
import { run } from '../esbuild-webview-common.js';
const srcDir = path.join(import.meta.dirname, 'notebook');
const outDir = path.join(import.meta.dirname, 'notebook-out');
run({
entryPoints: [
path.join(srcDir, 'index.ts'),
],
srcDir,
outdir: outDir,
}, process.argv);