File tree Expand file tree Collapse file tree
packages/uniwind/src/metro Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ type UniwindConfig = {
1111 polyfills ?: Polyfills
1212}
1313
14- export declare function withUniwindConfig ( config : MetroConfig , options : UniwindConfig ) : Promise < MetroConfig >
14+ export declare function withUniwindConfig ( config : MetroConfig , options : UniwindConfig ) : ( ) => Promise < MetroConfig >
Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ const getPlatformFromVirtualPath = (path: string) => {
2020
2121const platforms = [ Platform . iOS , Platform . Android , Platform . Web ]
2222
23- export const withUniwindConfig = async (
23+ export const withUniwindConfig = (
2424 config : MetroConfig ,
2525 uniwindConfig : UniwindConfig ,
26- ) : Promise < MetroConfig > => {
26+ ) =>
27+ async ( ) : Promise < MetroConfig > => {
2728 if ( ! fs . existsSync ( cacheDir ) ) {
2829 fs . mkdirSync ( cacheDir )
2930 }
You can’t perform that action at this time.
0 commit comments