Skip to content

Commit

Permalink
🔨 Attempt to fix building issues on MacOS
Browse files Browse the repository at this point in the history
See #1143
  • Loading branch information
SPGoding committed May 19, 2024
1 parent 42dbc01 commit 7b833fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/playground/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ try {
platform: 'node',
target: ['firefox89', 'chrome93'],
bundle: true,
external: ['electron', 'vscode'],
// fsevents is a MacOS specific native extension used by chokidar for file
// watching and should not be bundled:
// https://github.com/SpyglassMC/Spyglass/issues/1143
external: ['electron', 'fsevents', 'vscode'],
sourcemap: isDev,
minify: !isDev,
})
Expand Down
5 changes: 4 additions & 1 deletion packages/vscode-extension/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ try {
target: 'node16.13',
bundle: true,
outdir: './dist',
external: ['electron', 'vscode'],
// fsevents is a MacOS specific native extension used by chokidar for file
// watching and should not be bundled:
// https://github.com/SpyglassMC/Spyglass/issues/1143
external: ['electron', 'fsevents', 'vscode'],
sourcemap: isDev,
minify: !isDev,
})
Expand Down

0 comments on commit 7b833fb

Please sign in to comment.