Skip to content

Commit

Permalink
Update metro config sourceExtes to include cjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
geriux committed Apr 19, 2023
1 parent 5127e2f commit c6aba41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const gutenbergMetroConfigCopy = {
...gutenbergMetroConfig,
resolver: {
...gutenbergMetroConfig.resolver,
sourceExts: [ 'js', 'jsx', 'json', 'scss', 'sass', 'ts', 'tsx' ],
sourceExts: [ 'js', 'cjs', 'jsx', 'json', 'scss', 'sass', 'ts', 'tsx' ],
extraNodeModules,
},
};
Expand Down

0 comments on commit c6aba41

Please sign in to comment.