electrode-native icon indicating copy to clipboard operation
electrode-native copied to clipboard

Add babel plugin module resolver to composite

Open ozcanzaferayan opened this issue 3 years ago • 0 comments

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 avatar Feb 07 '22 22:02 ozcanzaferayan