1
1
<pre class='metadata'>
2
- Title : Source Map
2
+ Title : Source Map Format Specification
3
3
H1 : Source Map
4
4
Shortname : source-map
5
5
Level : none
@@ -19,6 +19,7 @@ Abstract: This Ecma standard defines the Source Map format, used for mapping tra
19
19
No Abstract : true
20
20
Markup Shorthands : markdown yes
21
21
Group : tc39
22
+ Boilerplate : references no
22
23
</pre>
23
24
24
25
<!-- Uncomment the next line when generating the PDF version of the spec -->
@@ -144,15 +145,6 @@ urlPrefix:https://webassembly.github.io/spec/core/; type:dfn; spec:wasm
144
145
}
145
146
</pre>
146
147
147
- <h2 class="no-num no-toc" id="about">About this Specification</h2>
148
-
149
- The document at [https://tc39.es/source-map/] (https://tc39.es/source-map/) is the most accurate and
150
- up-to-date source map specification. It contains the content of the most recently published snapshot
151
- plus any modifications that will be included in the next snapshot.
152
-
153
- If you want to get involved you will find more information at the [specification
154
- repository](https://github.com/tc39/source-map).
155
-
156
148
<h2 class="no-num" id="intro">Introduction</h2>
157
149
158
150
This Ecma Standard defines the Source Map Format, used for mapping transpiled source code back to the original sources.
@@ -161,6 +153,13 @@ The source map format has the following goals:
161
153
* Support source-level debugging allowing bidirectional mapping
162
154
* Support server-side stack trace deobfuscation
163
155
156
+ The document at [https://tc39.es/source-map/] (https://tc39.es/source-map/) is the most accurate and
157
+ up-to-date source map specification. It contains the content of the most recently published snapshot
158
+ plus any modifications that will be included in the next snapshot.
159
+
160
+ If you want to get involved you will find more information at the [specification
161
+ repository](https://github.com/tc39/source-map).
162
+
164
163
The original source map format (v1) was created by Joseph Schorr for use by
165
164
Closure Inspector to enable source-level debugging of optimized JavaScript code
166
165
(although the format itself is language agnostic). However, as the size of the
@@ -221,7 +220,74 @@ IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.</p>
221
220
Scope {#scope}
222
221
==============
223
222
224
- This Standard defines the Source Map Format.
223
+ This Standard defines the source map format, used by different types of
224
+ developer tools to improve the debugging experience of code compiled to
225
+ JavaScript, WebAssembly, and CSS.
226
+
227
+ Conformance {#conformance}
228
+ ==========================
229
+
230
+ A conforming source map document is a JSON document that conforms to the
231
+ structure detailed in this specification.
232
+
233
+ A conforming source map generator should generate documents which are
234
+ conforming source map documents, and can be decoded by the algorithms in this
235
+ specification without reporting any errors (even those which are specified as
236
+ optional).
237
+
238
+ A conforming source map consumer should implement the algorithms specified in this
239
+ specification for retrieving (where applicable) and decoding source map documents.
240
+ A conforming consumer is permitted to ignore errors or report them without
241
+ terminating where the specification indicates that an algorithm may
242
+ [=optionally report an error=] .
243
+
244
+ References {#references}
245
+ ========================
246
+
247
+ <!--
248
+ NOTE: This references section is manually generated because bikeshed assumes
249
+ that the references section should be un-numbered and we want to include
250
+ it as a numbered section. To generate it, use the following and then
251
+ copy the inner HTML contents:
252
+
253
+ <div data-fill-with="references"></div>
254
+
255
+ and replace [ with \[ to escape macros. Also add data-no-self-link="" to
256
+ each <dt> entry.
257
+ -->
258
+
259
+ <h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
260
+ <div class="no-ref">
261
+ <dl>
262
+ <dt id="biblio-ecmascript" data-no-self-link=""> \[ECMASCRIPT]
263
+ </dt><dd> <a href="https://tc39.es/ecma262/multipage/"><cite>ECMAScript Language Specification</cite></a> . URL: <a href="https://tc39.es/ecma262/multipage/">https://tc39.es/ecma262/multipage/</a>
264
+ </dd><dt id="biblio-encoding" data-no-self-link=""> \[ENCODING]
265
+ </dt><dd> Anne van Kesteren. <a href="https://encoding.spec.whatwg.org/"><cite>Encoding Standard</cite></a> . Living Standard. URL: <a href="https://encoding.spec.whatwg.org/">https://encoding.spec.whatwg.org/</a>
266
+ </dd><dt id="biblio-fetch" data-no-self-link=""> \[FETCH]
267
+ </dt><dd> Anne van Kesteren. <a href="https://fetch.spec.whatwg.org/"><cite>Fetch Standard</cite></a> . Living Standard. URL: <a href="https://fetch.spec.whatwg.org/">https://fetch.spec.whatwg.org/</a>
268
+ </dd><dt id="biblio-infra" data-no-self-link=""> \[INFRA]
269
+ </dt><dd> Anne van Kesteren; Domenic Denicola. <a href="https://infra.spec.whatwg.org/"><cite>Infra Standard</cite></a> . Living Standard. URL: <a href="https://infra.spec.whatwg.org/">https://infra.spec.whatwg.org/</a>
270
+ </dd><dt id="biblio-url" data-no-self-link=""> \[URL]
271
+ </dt><dd> <a href="https://url.spec.whatwg.org/"><cite>URL Standard</cite></a> . Living Standard. URL: <a href="https://url.spec.whatwg.org/">https://url.spec.whatwg.org/</a>
272
+ </dd><dt id="biblio-webidl" data-no-self-link=""> \[WEBIDL]
273
+ </dt><dd> Edgar Chen; Timothy Gu. <a href="https://webidl.spec.whatwg.org/"><cite>Web IDL Standard</cite></a> . Living Standard. URL: <a href="https://webidl.spec.whatwg.org/">https://webidl.spec.whatwg.org/</a>
274
+ </dd></dl>
275
+ <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
276
+ <dl>
277
+ <dt id="biblio-base64" data-no-self-link=""> \[BASE64]
278
+ </dt><dd> <a href="https://www.ietf.org/rfc/rfc4648.txt"><cite>The Base16, Base32, and Base64 Data Encodings</cite></a> . Standards Track. URL: <a href="https://www.ietf.org/rfc/rfc4648.txt">https://www.ietf.org/rfc/rfc4648.txt</a>
279
+ </dd><dt id="biblio-ecma-262" data-no-self-link=""> \[ECMA-262]
280
+ </dt><dd> <a href="https://tc39.es/ecma262/"><cite>ECMAScript® Language Specification</cite></a> . Standards Track. URL: <a href="https://tc39.es/ecma262/">https://tc39.es/ecma262/</a>
281
+ </dd><dt id="biblio-evalsourceurl" data-no-self-link=""> \[EvalSourceURL]
282
+ </dt><dd> <a href="https://web.archive.org/web/20120814122523/http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/"><cite>Give your eval a name with //@ sourceURL</cite></a> . archive. URL: <a href="https://web.archive.org/web/20120814122523/http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/">https://web.archive.org/web/20120814122523/http://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/</a>
283
+ </dd><dt id="biblio-v2format" data-no-self-link=""> \[V2Format]
284
+ </dt><dd> <a href="https://docs.google.com/document/d/1xi12LrcqjqIHTtZzrzZKmQ3lbTv9mKrN076UB-j3UZQ/edit?hl=en_US"><cite>Source Map Revision 2 Proposal</cite></a> . URL: <a href="https://docs.google.com/document/d/1xi12LrcqjqIHTtZzrzZKmQ3lbTv9mKrN076UB-j3UZQ/edit?hl=en_US">https://docs.google.com/document/d/1xi12LrcqjqIHTtZzrzZKmQ3lbTv9mKrN076UB-j3UZQ/edit?hl=en_US</a>
285
+ </dd><dt id="biblio-vlq" data-no-self-link=""> \[VLQ]
286
+ </dt><dd> <a href="https://en.wikipedia.org/wiki/Variable-length_quantity"><cite>Variable-length quantity</cite></a> . reference article. URL: <a href="https://en.wikipedia.org/wiki/Variable-length_quantity">https://en.wikipedia.org/wiki/Variable-length_quantity</a>
287
+ </dd><dt id="biblio-wasmnamesbinaryformat" data-no-self-link=""> \[WasmNamesBinaryFormat]
288
+ </dt><dd> <a href="https://www.w3.org/TR/wasm-core-2/#names%E2%91%A2"><cite>WebAssembly Names binary format</cite></a> . Living Standard. URL: <a href="https://www.w3.org/TR/wasm-core-2/#names%E2%91%A2">https://www.w3.org/TR/wasm-core-2/#names%E2%91%A2</a>
289
+ </dd></dl>
290
+ </div>
225
291
226
292
Terms and definitions {#terminology}
227
293
====================================
0 commit comments