From a8ff78d9ae82fe4785468f5f8ebe128832f5ebe0 Mon Sep 17 00:00:00 2001 From: Brian Frank Date: Tue, 31 Oct 2023 17:18:16 -0400 Subject: [PATCH] web: FilePack fix for toPodJsMapFile to route b/w ES and JS --- src/web/fan/FilePack.fan | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/fan/FilePack.fan b/src/web/fan/FilePack.fan index 49a2fe029..ab24e1d68 100644 --- a/src/web/fan/FilePack.fan +++ b/src/web/fan/FilePack.fan @@ -253,7 +253,9 @@ const class FilePack : Weblet static File toPodJsMapFile(File[] files, [Str:Obj]? options := null) { buf := Buf(4 * 1024 * 1024) - m := Slot.findMethod("compilerJs::SourceMap.pack") + m := WebJsMode.cur.isEs ? + Slot.findMethod("compilerEs::SourceMap.pack") : + Slot.findMethod("compilerJs::SourceMap.pack") m.call(files, buf.out, options) return buf.toFile(`js.map`) }