babel-plugin-module-resolver
babel-plugin-module-resolver copied to clipboard
Custom module resolver plugin for Babel
I'm relatively new to Expo and React Native. Have been facing problems in using absolute paths while importing the modules. Was reading on how to implement this plugin but I...
I have read through a lot of the issues and comments and potential solutions, all to no avail. I have had a multitude of issues, for example building the path...
when i use it in my react-native project. and set .babelrc by this: ` { "presets": ["react-native"], "plugins": [ [ "module-resolver", { "root": ["./src"], "extensions": [".js", ".ios.js", ".android.js"], "alias": {...
In the long term, I believe it will be easier to maintain tests with `babel-plugin-tester`, so I've taken the work that has been started in #284 and updated the test...
I've configured my alternate search paths as part of this module's `roots` (rather than in jest's config), and I get the following: ``` Cannot find module 'shared/selectors' from 'mock-helpers.js' at...
Hello all, I was trying to get Jest to work with my Node js application when I found out it could not find my aliases defined suing the package called...
Hi. Whenever I import a file in a React / Typescript project with the same name as its parent directory - excluding the extension, as is convention - the resolver...
Auto suggestions of file name not working in VSCode when importing (alias name / ) Example : @root/
**VSCode** not giving auto suggestions of file name inside the directory once we are using alias name with babel module resolver plugin for react native . I am having .js...
Hi. So I have the following structure: `src/lessons/01/Lesson01.tsx` I've setup the following in my `babel.config.js` ``` [ 'module-resolver', { root: './src', alias: { lessons: ([, subDir]) => { return `./src/lessons${subDir}`...
I'm trying to use **babel-plugin-module-resolver** in a [project](https://github.com/gustafsilva/myreads-app) that was created using the _create-react-app_. I installed the library as development dependencies, made the eject, and added the config lines in...