babel-plugin-module-resolver
babel-plugin-module-resolver copied to clipboard
path is not updating or changed or refresh
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'
},
},
],
],
}
}
It is working fine. the config changes one and only if you modify the code.
I was able to get this to work (after changing an existing alias) only by rebuilding the expo
cache with expo r -c
.