From 5f00db970fa8790b0d2bb800dbf922740cdecdc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Wed, 9 Oct 2024 03:40:20 -0700 Subject: [PATCH] Use CommonJS in feature flags definitions to simplify loading from Node.js (#46887) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46887 Changelog: [internal] This is a small change to use CommonJS in `ReactNativeFeatureFlags.config.js` so the file can be easily imported from Node.js. Reviewed By: jorge-cab Differential Revision: D64039860 fbshipit-source-id: c84ddbdbfe942224e213d12b9496c41b73dd5731 --- .../scripts/featureflags/ReactNativeFeatureFlags.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js index 483851dc9ac..4cf49ed3271 100644 --- a/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js +++ b/packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js @@ -605,4 +605,5 @@ const definitions: FeatureFlagDefinitions = { }, }; -export default definitions; +// Keep it as a CommonJS module so we can easily import it from Node.js +module.exports = definitions;