feat(expo): support cjs and mjs (#21408)

Co-authored-by: Miroslav Jonaš <missing.manual@gmail.com>
This commit is contained in:
Yu Zheng 2024-02-08 20:12:05 +11:00 committed by GitHub
parent 17d058857b
commit bf45f08992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ const customConfig = {
}, },
resolver: { resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'), assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'], sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
}, },
}; };

View File

@ -52,7 +52,7 @@ const customConfig = {
}, },
resolver: { resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'), assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'], sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
}, },
}; };

View File

@ -16,7 +16,7 @@ const customConfig = {
}, },
resolver: { resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'), assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'], sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
}, },
}; };

View File

@ -51,7 +51,7 @@ const customConfig = {
}, },
resolver: { resolver: {
assetExts: assetExts.filter((ext) => ext !== 'svg'), assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'], sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
}, },
}; };