diff --git a/src/lib/compiler.h b/src/lib/compiler.h index 8e84725..97c8a30 100644 --- a/src/lib/compiler.h +++ b/src/lib/compiler.h @@ -27,7 +27,7 @@ StringList compiler_list_known_units(Request* context); void compiler_set_known_units(Request* context, StringList files); void compiler_track_known_unit(Request* context, String file_name); void compiler_untrack_known_unit(Request* context, String file_name); -bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing = 0, bool allow_recent_source_stat = false); +bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing = 0, bool allow_recent_source_stat = false, bool path_is_normalized = false); DValue unit_info(String path = ""); StringList units_list(); bool unit_compile(String path = ""); diff --git a/src/wasm/worker.cpp b/src/wasm/worker.cpp index 2bb27d5..9c6244a 100644 --- a/src/wasm/worker.cpp +++ b/src/wasm/worker.cpp @@ -2210,7 +2210,7 @@ private: now - cached_freshness->second.checked_at).count() >= 1000; if(check_freshness) { - stale = compiler_unit_needs_recompile(context, resolved, 0, can_serve_stale && read_request); + stale = compiler_unit_needs_recompile(context, resolved, 0, can_serve_stale && read_request, true); worker.component_freshness[resolved] = { now, stale }; } else