Skip to content

Commit 14f42f5

Browse files
committed
Fix: tedge-mapper flows reloading updated .mjs files
Signed-off-by: Didier Wenzek <[email protected]>
1 parent ef5b6dc commit 14f42f5

File tree

1 file changed

+2
-2
lines changed
  • crates/extensions/tedge_flows/src

1 file changed

+2
-2
lines changed

crates/extensions/tedge_flows/src/actor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Actor for FlowsMapper {
5050
let Ok(path) = Utf8PathBuf::try_from(path) else {
5151
continue;
5252
};
53-
if matches!(path.extension(), Some("js" | "ts")) {
53+
if matches!(path.extension(), Some("js" | "ts" | "mjs")) {
5454
self.processor.reload_script(path).await;
5555
} else if path.extension() == Some("toml") {
5656
self.processor.reload_flow(path).await;
@@ -70,7 +70,7 @@ impl Actor for FlowsMapper {
7070
let Ok(path) = Utf8PathBuf::try_from(path) else {
7171
continue;
7272
};
73-
if matches!(path.extension(), Some("js" | "ts")) {
73+
if matches!(path.extension(), Some("js" | "ts" | "mjs")) {
7474
self.processor.remove_script(path).await;
7575
} else if path.extension() == Some("toml") {
7676
self.processor.remove_flow(path).await;

0 commit comments

Comments
 (0)