Skip to content

Commit

Permalink
web: FilePack fix for toPodJsMapFile to route b/w ES and JS
Browse files Browse the repository at this point in the history
  • Loading branch information
briansfrank committed Oct 31, 2023
1 parent 1a77149 commit a8ff78d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/web/fan/FilePack.fan
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
}
Expand Down

0 comments on commit a8ff78d

Please sign in to comment.