Skip to content

Commit ce84922

Browse files
j-piaseckifacebook-github-bot
authored andcommittedFeb 18, 2025·
Convert DevMenu to use exports syntax (#49491)
Summary: Pull Request resolved: #49491 Changelog: [General][Breaking] Deep imports to modules inside `Libraries/DevMenu` using `require` may need to be appended with `.default` Reviewed By: cortinico Differential Revision: D69778671 fbshipit-source-id: 19362fbb003e53609881fc19e8d2cb96677b3006
1 parent 7f1edbd commit ce84922

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/react-native/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ module.exports = {
177177
return require('./Libraries/Utilities/DeviceInfo').default;
178178
},
179179
get DevMenu() {
180-
return require('./src/private/devmenu/DevMenu');
180+
return require('./src/private/devmenu/DevMenu').default;
181181
},
182182
get DevSettings() {
183183
return require('./Libraries/Utilities/DevSettings').default;

‎packages/react-native/src/private/devmenu/DevMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ const DevMenu: DevMenuStatic = {
2828
},
2929
};
3030

31-
module.exports = DevMenu;
31+
export default DevMenu;

0 commit comments

Comments
 (0)