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

Commit 7806844

Browse files
concavelenzPavel Podivilov
authored andcommitted
Source Map Revision 3 Proposal as of 2012-07-30
Co-authored-by: John Lenz <[email protected]> Co-authored-by: Pavel Podivilov <[email protected]>
1 parent 7452259 commit 7806844

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source-map-rev3.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ April 15, 2011 | John Lenz | Updates to reflect prototype
1717
July 20, 2011 | John Lenz | Removed “lineCount” field, remove “Combined Map” section
1818
August 18, 2011 | John Lenz | Draft
1919
May 2, 2012 | John Lenz | HTTP header and CC-BY-SA license
20+
July 30, 2012 | John Lenz | Modified recommended HTTP header name.
2021

2122
## License
2223

@@ -183,7 +184,10 @@ The HTTP header should supply the source map URL reference as:
183184

184185

185186

186-
X-SourceMap
187+
```
188+
SourceMap: <url>
189+
```
190+
187191

188192
The generated code may include a line at the end of the source, with the following form:
189193

@@ -193,6 +197,8 @@ The generated code may include a line at the end of the source, with the followi
193197
```
194198

195199

200+
Note: previous revisions of this document recommended a header name of “X-SourceMap”. This is now deprecated; “SourceMap” is now expected.
201+
196202
Regardless of the method used to retrieve the source mapping URL the same process is used to resolve it, which is as follows:
197203

198204
When the source mapping URL is not absolute, then it is relative to the generated code’s “source origin”. The source origin is determined by one of the following cases:

0 commit comments

Comments
 (0)