Skip to content

Commit

Permalink
fixup! Source maps: use ignoreList to hide runtime files
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Oct 21, 2024
1 parent 7b6788e commit c9488bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/lib/js_output.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2162,8 +2162,7 @@ let program ?(accept_unnamed_var = false) f ?source_map p =
in
let ignore_list =
List.filter sources ~f:(fun filename ->
String.length filename >= 9
&& String.equal (String.sub filename ~pos:0 ~len:9) "/builtin/")
String.is_prefix ~prefix:"/builtin/" filename)
in
let sm_mappings = Source_map.Mappings.decode sm.mappings in
let relocate pos m =
Expand Down

0 comments on commit c9488bb

Please sign in to comment.