Skip to content

Commit 13938d1

Browse files
committed
Addressing Class private methods are not enabled
1 parent 92c8971 commit 13938d1

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: ['module:metro-react-native-babel-preset'],
3+
plugins: [
4+
["@babel/plugin-transform-private-methods", { "loose": true }]
5+
]
36
};

libs/SalesforceReact/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"start": "node node_modules/react-native/local-cli/cli.js start"
77
},
88
"dependencies": {
9+
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
910
"create-react-class": "^15.7.0",
1011
"react": "18.2.0",
1112
"react-native": "0.74.3",
1213
"react-native-force": "git+https://github.com/wmathurin/SalesforceMobileSDK-ReactNative.git#rn74"
1314
},
1415
"devDependencies": {
15-
"chai": "4.4.1",
1616
"@babel/core": "^7.20.0",
1717
"@babel/preset-env": "^7.20.0",
1818
"@babel/runtime": "^7.20.0",
@@ -23,6 +23,7 @@
2323
"@types/react": "^18.2.6",
2424
"@types/react-test-renderer": "^18.0.0",
2525
"babel-jest": "^29.6.3",
26+
"chai": "4.4.1",
2627
"eslint": "^8.19.0",
2728
"jest": "^29.6.3",
2829
"metro-react-native-babel-preset": "0.77.0",

0 commit comments

Comments
 (0)