Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add babel plugin module resolver to composite #1856

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ozcanzaferayan
Copy link
Contributor

Im defining aliases on package.json like below.:

    "babel": {
      "presets": [
        "module:metro-react-native-babel-preset"
      ],
      "plugins": [
        [
          "module-resolver",
          {
            "alias": {
              "@app": "./src"
            }
          }
        ]
      ]
  }

But composite generation doesnt find babel-plugin-module-resolver and throws error like this:
✖ error index.ios.js: Cannot find module 'babel-plugin-module-resolver'

This commit fixes this issue by adding resolver to generated composite.

@ozcanzaferayan ozcanzaferayan force-pushed the ozcanzaferayan/fix_module_resolver branch from b39f7b2 to 137ecdf Compare March 4, 2022 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant