Skip to content

Commit

Permalink
[0.72] Restore 'import' in default Package Exports conditions
Browse files Browse the repository at this point in the history
Cherry pick 808b3c9

Versions @react-native/metro-config as 0.72.2 and updates dependency in template.
  • Loading branch information
huntie committed Apr 19, 2023
1 parent f60938e commit 41d780e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/metro-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getDefaultConfig(
resolver: {
resolverMainFields: ['react-native', 'browser', 'main'],
platforms: ['android', 'ios'],
unstable_conditionNames: ['require', 'react-native'],
unstable_conditionNames: ['require', 'import', 'react-native'],
},
serializer: {
getPolyfills: () => require('@react-native/js-polyfills')(),
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native/metro-config",
"version": "0.72.1",
"version": "0.72.2",
"description": "Metro configuration for React Native.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.12.5",
"@react-native/eslint-config": "^0.72.1",
"@react-native/metro-config": "^0.72.1",
"@react-native/metro-config": "^0.72.2",
"@tsconfig/react-native": "^2.0.2",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
Expand Down

0 comments on commit 41d780e

Please sign in to comment.