File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const bridge = {
4444 path . resolve (
4545 currentDir ,
4646 extraResourcesPath ,
47- 'serial-bridge/bridgeProcess.js '
47+ 'serial-bridge/bridgeProcess.cjs '
4848 )
4949 )
5050 bridge . process . on ( 'message' , ( message ) => {
Original file line number Diff line number Diff line change 1- import { spawn } from 'child_process'
2- import { resolve } from 'path'
1+ const { spawn } = require ( 'child_process' )
2+ const path = require ( 'path' )
33const decoder = new TextDecoder ( )
44
5- import { fileURLToPath } from 'node:url'
6- const currentDir = fileURLToPath ( new URL ( '.' , import . meta. url ) )
7-
8- const bridgeProcess = spawn ( resolve ( currentDir , 'flipper_lab_bridge' ) )
5+ const bridgeProcess = spawn ( path . resolve ( __dirname , 'flipper_lab_bridge' ) )
96
107bridgeProcess . stdout . on ( 'data' , ( data ) => {
118 process . parentPort . postMessage ( {
You can’t perform that action at this time.
0 commit comments