Move ReactFiberTreeReflection to react-reconciler/reflection (#11683)

* Move ReactFiberTreeReflection to react-reconciler/reflection #11659

* Use * for react-reconciler

We don't know the latest local version, and release script currently doesn't bump deps automatically.

* Remove unused field

* Use CommonJS in entry point for consistency

* Undo the CommonJS change

I didn't realize it would break the build.

* Record sizes

* Remove reconciler fixtures

They're unnecessary now that we run real tests on reconciler bundles.
This commit is contained in:
rivenhk
2017-11-28 16:57:22 +00:00
committed by Dan Abramov
parent db0454134c
commit 8e876d244c
22 changed files with 58 additions and 536 deletions
-5
View File
@@ -10,8 +10,3 @@ yarn build --extract-errors
# Do a sanity check on bundles
yarn lint-build
# Check that the standalone reconciler isn't borked
cd fixtures/reconciler
yarn
yarn test
+10
View File
@@ -211,6 +211,16 @@ const bundles = [
externals: ['react'],
},
/******* Reflection *******/
{
label: 'reconciler-reflection',
moduleType: RENDERER_UTILS,
bundleTypes: [NODE_DEV, NODE_PROD],
entry: 'react-reconciler/reflection',
global: 'ReactFiberTreeReflection',
externals: [],
},
/******* React Call Return (experimental) *******/
{
label: 'react-call-return',
+12 -4
View File
@@ -189,8 +189,8 @@
"gzip": 2725
},
"react-noop-renderer.development.js (NODE_DEV)": {
"size": 277788,
"gzip": 58527
"size": 17474,
"gzip": 4855
},
"react-reconciler.development.js (NODE_DEV)": {
"size": 262177,
@@ -217,8 +217,16 @@
"gzip": 3917
},
"react-noop-renderer.production.min.js (NODE_PROD)": {
"size": 45144,
"gzip": 14079
"size": 6011,
"gzip": 2418
},
"react-reconciler-reflection.development.js (NODE_DEV)": {
"size": 10398,
"gzip": 3198
},
"react-reconciler-reflection.production.min.js (NODE_PROD)": {
"size": 2408,
"gzip": 1062
}
}
}