Remove previous webview since we use react app now

This commit is contained in:
Saoud Rizwan
2024-07-06 02:54:27 -04:00
parent ed9ff69fc7
commit 4916b2c28d
10 changed files with 159 additions and 482 deletions

View File

@@ -44,25 +44,13 @@ const extensionConfig = {
external: ["vscode"],
}
const webviewConfig = {
...baseConfig,
target: "es2020",
format: "esm",
entryPoints: ["src/webview/main.ts"],
outfile: "dist/webview.js",
}
async function main() {
const extensionCtx = await esbuild.context(extensionConfig)
const webviewCtx = await esbuild.context(webviewConfig)
if (watch) {
await extensionCtx.watch()
await webviewCtx.watch()
} else {
await extensionCtx.rebuild()
await extensionCtx.dispose()
await webviewCtx.rebuild()
await webviewCtx.dispose()
}
}