The let/const plugin can add closures where you don't expect them. This is undesirable in some perf-sensitive projects (ex: React). I added an option that throws whenever the plugin adds a function (as opposed to simply renaming variables when converting to var).
4 lines
98 B
JSON
4 lines
98 B
JSON
{
|
|
"throws": "Compiling let/const in this block would add a closure (throwIfClosureRequired)."
|
|
}
|