Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix constant-folding-plugin for default export function
Summary: **Summary** When using ES modules it is possible that a function id is null, for example `export default function() {}` so we need to add a check to avoid an error. Fixes #177 **Test plan** Added a test and made sure it failed before the fix and passes after. Also tested by applying the fix locally in an app where I found the bug. Closes #178 Differential Revision: D8247142 Pulled By: mjesun fbshipit-source-id: c4642ba45b2818fb9d30b5e705250563c969c84e
- Loading branch information