MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / resolveVariable

Method resolveVariable

tools/mcbundle.js:133–140  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

131 return value;
132 }
133 resolveVariable(value) {
134 value = value.replace(/\$\(([^\)]+)\)/g, (offset, value) => {
135 if (value in this.environment)
136 return this.environment[value];
137 return this.getenv(value);
138 });
139 return this.resolveSlash(value);
140 }
141 run() {
142 const path = this.manifestPath;
143 const manifest = this.parseManifest(path);

Callers 1

parseBuildMethod · 0.45

Calls 2

replaceMethod · 0.80
resolveSlashMethod · 0.45

Tested by

no test coverage detected