-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathinline-source-map.node.txt
26 lines (19 loc) · 1.27 KB
/
inline-source-map.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
┏━━━━━━━━━━━━━━━━━━━━━━━┓
┃ INLINE-SOURCE-MAP ┃
┗━━━━━━━━━━━━━━━━━━━━━━━┛
ALTERNATIVES ==> #See convert-source-map
VERSION ==> #0.6.2
GOAL ==> #Generates sourceMappingURL comment.
#Uses mozilla source-map (see its doc)
INLINE-SOURCE-MAP([OPTS]) #Thin wrapper around mozilla source-map's GENERATOR
->IGENERATOR #OPTS:
# - file STR (def: '') (SOURCE_MAP "file")
# - sourceRoot STR (def: '') (SOURCE_MAP "sourceRoot")
IGENERATOR.gen #Underlying GENERATOR
IGENERATOR.inlineMappingUrl()->STR#Returns '//# sourceMappingURL=data:application/json;charset=utf-8;base64,BASE64_SOURCE_MAP'
IGENERATOR.toJSON()->SOURCE_MAP #
IGENERATOR.toString()
->'SOURCE_MAP' #
IGENERATOR.addSourceContent(...) #Same as GENERATOR.setSourceContent()
IGENERATOR.add[Generated]Mappings
(...) #Some not very useful helper around GENERATOR.addMapping()