From daeda44d8f5abdb7354742bb69a967302d34d7f9 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Tue, 19 Mar 2019 20:55:04 +0000 Subject: [PATCH] Follow up to 15150 (#15152) --- packages/react-events/index.js | 6 +----- packages/react-events/src/ReactEvents.js | 8 +------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/react-events/index.js b/packages/react-events/index.js index e22e25dabd125..ef5141aefdd09 100644 --- a/packages/react-events/index.js +++ b/packages/react-events/index.js @@ -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'; diff --git a/packages/react-events/src/ReactEvents.js b/packages/react-events/src/ReactEvents.js index 09ae7abf9f709..af5c08b0b8e95 100644 --- a/packages/react-events/src/ReactEvents.js +++ b/packages/react-events/src/ReactEvents.js @@ -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;