Skip to content

Commit

Permalink
Follow up to 15150 (#15152)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Mar 19, 2019
1 parent acd65db commit daeda44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 1 addition & 5 deletions packages/react-events/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
8 changes: 1 addition & 7 deletions packages/react-events/src/ReactEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit daeda44

Please sign in to comment.