Skip to content

Commit 2e2673b

Browse files
committed
feat(expo): support cjs and mjs
1 parent bb3cf3a commit 2e2673b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/expo/src/migrations/update-16-6-0/update-metro-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const customConfig = {
5353
},
5454
resolver: {
5555
assetExts: assetExts.filter((ext) => ext !== 'svg'),
56-
sourceExts: [...sourceExts, 'svg'],
56+
sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
5757
blockList: exclusionList([/^(?!.*node_modules).*\\/dist\\/.*/]),
5858
unstable_enableSymlinks: true,
5959
unstable_enablePackageExports: true,

packages/react-native/src/migrations/update-16-6-0/update-metro-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const customConfig = {
5252
},
5353
resolver: {
5454
assetExts: assetExts.filter((ext) => ext !== 'svg'),
55-
sourceExts: [...sourceExts, 'svg'],
55+
sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'],
5656
blockList: exclusionList([/^(?!.*node_modules).*\\/dist\\/.*/]),
5757
unstable_enableSymlinks: true,
5858
unstable_enablePackageExports: true,

0 commit comments

Comments
 (0)