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

Commit

Permalink
Merge pull request #23 from bomsy/supported-comment-formats
Browse files Browse the repository at this point in the history
Updated the spec to clearly define usage of the sourcemap comment formats
  • Loading branch information
jkup authored Jan 18, 2024
2 parents cbbc033 + e2fe1b3 commit fabdabd
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 `//#`. It is reasonable for tools to
also accept `//@` but `//#` is preferred.
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 fabdabd

Please sign in to comment.