File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -331,20 +331,20 @@ function getBscArgs(
331
331
}
332
332
}
333
333
334
- const rewatchArguments = semver . satisfies ( project . rescriptVersion , ">12.0.0-alpha.14 " , { includePrerelease : true } ) ? [
334
+ const rewatchArguments = semver . satisfies ( project . rescriptVersion , ">= 12.0.0-beta.2 " , { includePrerelease : true } ) ? [
335
335
"compiler-args" ,
336
- "--rescript-version" ,
337
- project . rescriptVersion ,
338
336
entry . file . sourceFilePath ,
339
337
] : [
340
338
"--rescript-version" ,
341
339
project . rescriptVersion ,
342
340
"--compiler-args" ,
343
341
entry . file . sourceFilePath ,
344
342
] ;
343
+ const bscExe = await utils . findBscExeBinary ( entry . project . workspaceRootPath ) ;
344
+ const env = bscExe != null ? { RESCRIPT_BSC_EXE : bscExe } : undefined ;
345
345
const compilerArgs = JSON . parse (
346
346
cp
347
- . execFileSync ( rewatchPath , rewatchArguments )
347
+ . execFileSync ( rewatchPath , rewatchArguments , { env } )
348
348
. toString ( )
349
349
. trim ( )
350
350
) as RewatchCompilerArgs ;
You can’t perform that action at this time.
0 commit comments