MCPcopy
hub / github.com/webpack/webpack / renderLet

Method renderLet

lib/RuntimeTemplate.js:262–264  ·  view source on GitHub ↗

* Renders return let when it is supported, otherwise var. * @returns {"let" | "var"} return `let` when it is supported, otherwise `var`

()

Source from the content-addressed store, hash-verified

260 * @returns {"let" | "var"} return `let` when it is supported, otherwise `var`
261 */
262 renderLet() {
263 return this.supportsLet() ? "let" : "var";
264 }
265
266 /**
267 * Returning function.

Callers 15

destructureArrayMethod · 0.95
destructureObjectMethod · 0.95
exportFromImportMethod · 0.95
generateMethod · 0.80
codeGenerationMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
renderMainMethod · 0.80
renderBootstrapMethod · 0.80
renderRequireMethod · 0.80
generateMethod · 0.80
codeGenerationMethod · 0.80

Calls 1

supportsLetMethod · 0.95

Tested by

no test coverage detected