Skip to content

Commit eaca900

Browse files
♻️ Run dirty builds during live reloading.
1 parent c2b53f5 commit eaca900

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lustre_dev_tools/cli/build.gleam

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,13 @@ pub fn do_app(minify: Bool, detect_tailwind: Bool, dirty: Bool) -> Cli(Nil) {
7474
use <- cli.success("Project compiled successfully")
7575
use <- cli.log("Checking if I can bundle your application")
7676
use _ <- cli.do({
77-
use <- bool.guard(dirty == False, cli.return(Nil))
77+
// If we're running a dirty build we don't bother checking the package interface
78+
// to see if the main function is correct. We skip this check during live
79+
// reloads to work around a current compiler issue:
80+
//
81+
// https://github.com/gleam-lang/gleam/issues/2898
82+
//
83+
use <- bool.guard(dirty == True, cli.return(Nil))
7884
use module <- try(get_module_interface(project_name))
7985
use _ <- try(check_main_function(project_name, module))
8086

0 commit comments

Comments
 (0)