Skip to content

Commit

Permalink
Update template metro.config.js, remove transitive metro dep from mai…
Browse files Browse the repository at this point in the history
…n package (#36723)

Summary:
Pull Request resolved: facebook/react-native#36723

Changelog: [Internal]

Reviewed By: hoxyq

Differential Revision: D44542544

fbshipit-source-id: 70807edc8a183c28e1f0018a5426f4f2e29580a0

Original: facebook/react-native@f67bd67
  • Loading branch information
huntie authored and facebook-github-bot committed Mar 30, 2023
1 parent 75e0c33 commit 49a6fad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions template/template/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const {getDefaultConfig} = require('@react-native/metro-config');
const {mergeConfig} = require('metro-config');
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');

/**
* Metro configuration
Expand Down
3 changes: 1 addition & 2 deletions template/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.12.5",
"@react-native/eslint-config": "^0.72.1",
"@react-native/metro-config": "^0.72.0",
"@react-native/metro-config": "^0.72.1",
"@tsconfig/react-native": "^2.0.2",
"@types/metro-config": "^0.76.1",
"@types/react": "^18.0.24",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"jest": "^29.2.1",
"metro-config": "0.76.0",
"metro-react-native-babel-preset": "0.76.0",
"prettier": "^2.4.1",
"react-test-renderer": "18.2.0",
Expand Down

0 comments on commit 49a6fad

Please sign in to comment.