babel-plugin-module-resolver icon indicating copy to clipboard operation
babel-plugin-module-resolver copied to clipboard

path is not updating or changed or refresh

Open cullsin opened this issue 5 years ago • 2 comments

Hi,

I have configured .babel.config.js in the React - Native. It is working. But I do not know it is not refreshing the changes. I tried npm clear cache many times. Still no hope. How do I reset babel config ?

  module.exports = function(api) {
    api.cache(true)
    return {
      presets: ['module:metro-react-native-babel-preset'],
      plugins: [
        [
          'module-resolver',
          {
            alias: {
              components: './src/components',
              layout: './src/layout',
              routes: './src123/routes',
              meta: './src/meta',
              style: './src/style',
              com: './src/com',
              db: './src/db'
            },
          },
        ],
      ],
    }
  }

cullsin avatar Feb 15 '20 05:02 cullsin

It is working fine. the config changes one and only if you modify the code.

cullsin avatar Feb 16 '20 08:02 cullsin

I was able to get this to work (after changing an existing alias) only by rebuilding the expo cache with expo r -c.

kendallroth avatar Aug 23 '20 00:08 kendallroth