summaryrefslogtreecommitdiff
path: root/extension/esbuild.mjs
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-06 17:50:50 -0400
committerNate Sesti <sestinj@gmail.com>2023-06-06 17:50:50 -0400
commit881718c4c7f58837a8a208930e7d2c69b9433fd7 (patch)
tree1d86b8cb99f036fd80987e0c3b16fee52f382c02 /extension/esbuild.mjs
parent5cb69176f731d6e93802e29eb37c5c5d83003be2 (diff)
downloadsncontinue-881718c4c7f58837a8a208930e7d2c69b9433fd7.tar.gz
sncontinue-881718c4c7f58837a8a208930e7d2c69b9433fd7.tar.bz2
sncontinue-881718c4c7f58837a8a208930e7d2c69b9433fd7.zip
trying to reliably capture terminal output in vsc
Diffstat (limited to 'extension/esbuild.mjs')
-rw-r--r--extension/esbuild.mjs14
1 files changed, 14 insertions, 0 deletions
diff --git a/extension/esbuild.mjs b/extension/esbuild.mjs
new file mode 100644
index 00000000..bc1b3e5f
--- /dev/null
+++ b/extension/esbuild.mjs
@@ -0,0 +1,14 @@
+import * as esbuild from "esbuild";
+// esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node
+await esbuild.build({
+ entryPoints: ["src/extension.ts"],
+ bundle: true,
+ outfile: "out/extension.js",
+ external: ["vscode"],
+ format: "cjs",
+ platform: "node",
+ sourcemap: true,
+ loader: {
+ ".node": "file",
+ },
+});