Skip to content

Commit daeda44

Browse files
authored
Follow up to 15150 (#15152)
1 parent acd65db commit daeda44

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

packages/react-events/index.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@
99

1010
'use strict';
1111

12-
const ReactEvents = require('./src/ReactEvents');
13-
14-
// TODO: decide on the top-level export form.
15-
// This is hacky but makes it work with both Rollup and Jest.
16-
module.exports = ReactEvents.default || ReactEvents;
12+
export * from './src/ReactEvents';

packages/react-events/src/ReactEvents.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@ import {
1313
} from 'shared/ReactSymbols';
1414
import type {ReactEventTarget} from 'shared/ReactTypes';
1515

16-
const TouchHitTarget: ReactEventTarget = {
16+
export const TouchHitTarget: ReactEventTarget = {
1717
$$typeof: REACT_EVENT_TARGET_TYPE,
1818
type: REACT_EVENT_TARGET_TOUCH_HIT,
1919
};
20-
21-
const ReactEvents = {
22-
TouchHitTarget,
23-
};
24-
25-
export default ReactEvents;

0 commit comments

Comments
 (0)