Skip to content

Commit

Permalink
feat(expo): support cjs and mjs (#21408)
Browse files Browse the repository at this point in the history
Co-authored-by: Miroslav Jonaš <missing.manual@gmail.com>
(cherry picked from commit bf45f08)
  • Loading branch information
yzhe554 authored and FrozenPandaz committed Feb 9, 2024
1 parent d7815fa commit 280056c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const customConfig = {
},
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const customConfig = {
},
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const customConfig = {
},
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const customConfig = {
},
resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
},
};
Expand Down

0 comments on commit 280056c

Please sign in to comment.