Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Fix based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bomsy authored and nicolo-ribaudo committed Jan 10, 2024
1 parent ecd6ef8 commit e2fe1b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source-map.bs
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,11 @@ The generated code should include a line at the end of the source, with the foll
```

Note: The prefix for this annotation was initially `//@` however this conflicts with Internet
Explorer's Conditional Compilation and was changed to `//#`. Source map generators should only support `//#`
while source map consumers should support both `//@` and `//#` for legacy compatibility.
Explorer's Conditional Compilation and was changed to `//#`. Source map generators must only emit `//#`
while source map consumers must accept both `//@` and `//#`.

Note: `//@` is needed for compatibility with some existing legacy source maps.


This recommendation works well for JavaScript, it is expected that other source files will
have different conventions. For instance, for CSS `/*# sourceMappingURL=<url> */` is proposed.
Expand Down

0 comments on commit e2fe1b3

Please sign in to comment.