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
39 B
JavaScript
4 lines
39 B
JavaScript
function test() {
|
|
var foo = "bar";
|
|
}
|