Skip to content

Commit 1a0f326

Browse files
committed
Disable use of fsevents in chokidar
1 parent f847124 commit 1a0f326

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/lifecycle/MatlabSession.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export async function launchNewMatlab (): Promise<MatlabSession> {
4444
const outFile = path.join(Logger.logDir, 'matlabls_conn.json')
4545

4646
const watcher = chokidar.watch(outFile, {
47-
persistent: true
47+
persistent: true,
48+
useFsEvents: false
4849
})
4950

5051
// This callback will be triggered when MATLAB has launched and writes the watched file.

webpack.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const path = require('path')
55
const config = {
66
target: 'node',
77
mode: 'none',
8-
// node: {
9-
// __dirname: false
10-
// },
8+
node: {
9+
__dirname: false
10+
},
1111
entry: './src/index.ts',
1212
output: {
1313
path: path.resolve(__dirname, 'out'),

0 commit comments

Comments
 (0)