MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / constructor

Method constructor

benchmark/data.js:141–148  ·  view source on GitHub ↗
(properties)

Source from the content-addressed store, hash-verified

139}
140class SourceMap {
141 constructor(properties) {
142 this.version = 3;
143 this.file = properties.file;
144 this.sources = properties.sources;
145 this.sourcesContent = properties.sourcesContent;
146 this.names = properties.names;
147 this.mappings = encode(properties.mappings);
148 }
149 toString() {
150 return JSON.stringify(this);
151 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected