Skip to content

Commit bf1b212

Browse files
authored
[All] Fix --legacyCracker flag logic (#4267)
1 parent ab6ad19 commit bf1b212

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Fable.Cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111

1212
* [All] Fix `--cwd` with quoted paths (by @MangelMaxime)
13+
* [All] Fix `--legacyCracker` flag logic (by @MangelMaxime)
1314

1415
### Changed
1516

src/Fable.Cli/Entry.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ type Runner =
275275
args.Value("--precompiledLib") |> Option.map normalizeAbsolutePath
276276

277277
let fableLib = args.Value "--fableLib" |> Option.map Path.normalizePath
278-
let useMSBuildForCracking = args.FlagOr("--legacyCracker", true)
278+
let useLegacyCracker = args.FlagOr("--legacyCracker", false)
279279

280280
do!
281281
match watch, outDir, fableLib with
@@ -388,7 +388,7 @@ type Runner =
388388
None
389389

390390
let startCompilation () =
391-
State.Create(cliArgs, ?watchDelay = watchDelay, useMSBuildForCracking = useMSBuildForCracking)
391+
State.Create(cliArgs, ?watchDelay = watchDelay, useMSBuildForCracking = not useLegacyCracker)
392392
|> startCompilationAsync
393393
|> Async.RunSynchronously
394394

0 commit comments

Comments
 (0)