mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
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:
18
extensions/markdown-language-features/esbuild-notebook.mjs
Normal file
18
extensions/markdown-language-features/esbuild-notebook.mjs
Normal 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);
|
||||
Reference in New Issue
Block a user