Closed bvaughn closed 7 years ago
While syncing the latest React release to fbsource I discovered an improperly handled inlining case.
Essentially this:
function foo() { bar(); } var bar = require('baz'); foo();
Became this (and errored because bar was undefined):
bar
function foo() { bar(); } foo();
After this bugfix it becomes:
function foo() { require("baz")(); } foo();
cc @spicyj for a code review 😄
Published babel-preset-fbjs@2.1.1.
Nice! Thanks!
While syncing the latest React release to fbsource I discovered an improperly handled inlining case.
Essentially this:
Became this (and errored because
bar
was undefined):After this bugfix it becomes: