Skip to content

Commit

Permalink
Enable Metro experimental import support
Browse files Browse the repository at this point in the history
And document
  • Loading branch information
leotm committed Mar 29, 2022
1 parent de25418 commit f6daa20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
/**
* "If you are brave, turn the two flags to `true` which may bring significant perf improvements"
* More: https://github.com/zertosh/babel-plugin-transform-inline-imports-commonjs#details
* May require disabling with other libraries like Storybook, React Navigation, etc until supported.
*/
experimentalImportSupport: true,
inlineRequires: true
}
})
Expand Down

0 comments on commit f6daa20

Please sign in to comment.