Skip to content

Commit

Permalink
Don't include pty.node unless on Linux (eclipse-cdt-cloud#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-grant-work authored Sep 28, 2023
1 parent 004a59f commit b8a6ad6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esbuild.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-check
const esbuild = require('esbuild');
const path = require('node:path');
const os = require('node:os');
const { sassPlugin } = require('esbuild-sass-plugin');

/** @typedef {import('esbuild').BuildOptions} BuildOptions */
Expand Down Expand Up @@ -48,7 +49,7 @@ const configurations = [
path.join(debugAdapterRoot, 'debugTargetAdapter.js'),
],
outdir: path.join(__dirname, 'dist'),
external: ['process'], // Workaround pending https://github.com/eclipse-cdt-cloud/cdt-gdb-adapter/pull/288
external: os.platform() !== 'linux' ? ['*/pty.node'] : undefined,
loader: { '.node': 'copy' },
format: 'cjs',
platform: 'node',
Expand Down

0 comments on commit b8a6ad6

Please sign in to comment.