Skip to content

Commit

Permalink
update metro config
Browse files Browse the repository at this point in the history
  • Loading branch information
mansi-square committed May 27, 2024
1 parent 3ae4eaf commit 58eb012
Show file tree
Hide file tree
Showing 3 changed files with 1,578 additions and 1,640 deletions.
20 changes: 13 additions & 7 deletions react-native-in-app-payments-quickstart/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

/**
* Metro configuration
* https://reactnative.dev/docs/metro
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
* @type {import('metro-config').MetroConfig}
* @format
*/
const config = {};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
};
9 changes: 4 additions & 5 deletions react-native-in-app-payments-quickstart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"lint": "eslint .",
"build:android": "cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
"build:ios": "cd ios && xcodebuild -workspace SquareInAppPaymentsExample.xcworkspace -scheme SquareInAppPaymentsExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
"start": "react-native start",
"test": "jest"
},
"dependencies": {
"fbjs": "^3.0.4",
Expand All @@ -26,7 +25,7 @@
"@babel/runtime": "^7.20.0",
"@react-native/babel-preset": "0.74.83",
"@react-native/eslint-config": "0.74.83",
"@react-native/metro-config": "^0.74.83",
"@react-native/metro-config": "0.74.83",
"@react-native/typescript-config": "0.74.83",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
Expand All @@ -42,4 +41,4 @@
"node": ">=18"
},
"packageManager": "yarn@1.22.22"
}
}
Loading

0 comments on commit 58eb012

Please sign in to comment.