Skip to content

Commit

Permalink
feat: metro config async
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen committed Oct 27, 2023
1 parent fa79e45 commit 6f21e4f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const { mergeConfig } = require('metro-config')
const { getMetroConfig } = require('@tarojs/rn-supporter')
module.exports = mergeConfig({

module.exports = (async function (){
return mergeConfig({
// custom your metro config here
// https://facebook.github.io/metro/docs/configuration
resolver: {}
}, getMetroConfig())
resolver: {}
}, await getMetroConfig())
})()

0 comments on commit 6f21e4f

Please sign in to comment.