dillon1000/react

Commit

Eagerly evaluate inline requires in Jest (#7245)

* Eagerly evaluate inline requires in Jest

I inlined some requires in #7188 to fix the build size regression.
However this caused an issue with Jest due to it resetting module registry between tests.

This is a temporary fix to #7240.
It should be reverted as part of #7178.

* Make the hack work in all environments
Browse files
Changed paths6 files
First-parent comparison
M grunt/tasks/browserify.js ModifiedM src/isomorphic/classic/types/checkReactTypeSpec.js ModifiedM src/renderers/shared/stack/reconciler/ReactChildReconciler.js ModifiedM src/renderers/shared/stack/reconciler/__tests__/ReactMultiChildReconcile-test.js ModifiedM src/renderers/shared/stack/reconciler/__tests__/refs-test.js ModifiedM src/shared/utils/flattenChildren.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…