Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
_interopRequireDefault
not defined error
Summary: D25175301 (279b295) stopped cloning the `AST` in the transform worker. Not cloning the AST seems to cause problems if ES Modules are lowered to CommonJS when not using`experimentalImportSupport`. I don't know exactly why it's causing problems but noticed in another place where I tried to stop cloning the AST nodes that Babel messes up its cache (of scopes) when the same AST tree is traversed multiple times. Another explanation could be that a plugin is doing something funky or we hold on to an AST node that shouldn't be changed but now gets changed because the AST isn't cloned. Re-enabling cloning slighlty increase the overall build time (~2s for a 80s build) Reviewed By: nikoant Differential Revision: D26749029 fbshipit-source-id: 9dbceb8fe60054a9e7785bf625104fbe6042c57c
- Loading branch information