Expose more internal modules to www

This commit is contained in:
Dan Abramov
2017-03-10 15:30:46 +00:00
parent 71d6c3b1b5
commit 063067d323
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
'use strict';
const {
Children,
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
} = require('React-fb');
module.exports = Children;
module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactChildren;
+5 -1
View File
@@ -12,8 +12,12 @@
const {
createElement,
createFactory,
isValidElement,
} = require('React-fb');
module.exports = {
createElement: createElement,
createElement,
createFactory,
isValidElement,
};
+1
View File
@@ -16,6 +16,7 @@ var React = require('React');
// `version` will be added here by the React module.
var ReactFBEntry = Object.assign({
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
ReactChildren: require('ReactChildren'),
ReactCurrentOwner: require('react/lib/ReactCurrentOwner'),
getComponentName: require('getComponentName'),
flattenChildren: require('flattenChildren'),