aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/firefox-debug-adapter/patches.lua
blob: 09896fdf7373536d4eac6fd8fd815261c920d81e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
local fix_macos_build = [=====[
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,6 +1,14 @@
 const path = require('path');
 const CopyPlugin = require('copy-webpack-plugin');

+const externals = {
+	vscode: 'commonjs vscode',
+};
+
+if (process.platform === "darwin") {
+	externals["fsevents"] = 'commonjs fsevents';
+}
+
 module.exports = {
 	context: path.resolve(__dirname, 'src'),
 	entry: {
@@ -19,9 +27,7 @@ module.exports = {
 			}
 		]
 	},
-	externals: {
-		vscode: 'commonjs vscode'
-	},
+	externals,
 	output: {
 		path: path.resolve(__dirname, 'dist'),
 		filename: '[name].bundle.js',
]=====]

return { fix_macos_build }