Group event code together and forbid cross-client/server imports (#11298)

* react-dom/src/syntheticEvents => events, and put plugins into it

* Flatten react-dom/src/shared

* Split react-dom/src/client/utils into event/ and root client folder

Makes it clearer what is used by what.

* Strictly separate modules that can be imported by client and server
This commit is contained in:
Dan Abramov
2017-10-20 13:51:50 +01:00
committed by GitHub
parent c080537a7b
commit ab853e6f3e
65 changed files with 28 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ const RN_PROD = Bundles.bundleTypes.RN_PROD;
const facebookWWW = 'facebook-www';
// these files need to be copied to the facebook-www build
const facebookWWWSrcDependencies = [
'packages/react-dom/src/client/eventPlugins/TapEventPlugin.js',
'packages/react-dom/src/client/event/plugins/TapEventPlugin.js',
];
// these files need to be copied to the react-native build