Follow up to 15150 (#15152)

This commit is contained in:
Dominic Gannaway
2019-03-19 20:55:04 +00:00
committed by GitHub
parent acd65db5bc
commit daeda44d8f
2 changed files with 2 additions and 12 deletions

View File

@@ -9,8 +9,4 @@
'use strict';
const ReactEvents = require('./src/ReactEvents');
// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest.
module.exports = ReactEvents.default || ReactEvents;
export * from './src/ReactEvents';

View File

@@ -13,13 +13,7 @@ import {
} from 'shared/ReactSymbols';
import type {ReactEventTarget} from 'shared/ReactTypes';
const TouchHitTarget: ReactEventTarget = {
export const TouchHitTarget: ReactEventTarget = {
$$typeof: REACT_EVENT_TARGET_TYPE,
type: REACT_EVENT_TARGET_TOUCH_HIT,
};
const ReactEvents = {
TouchHitTarget,
};
export default ReactEvents;