Closed abdullahmamunv2 closed 5 years ago
I felt that it will be better if we keep a separate config file(module.alias.config.js) for modules aliases because it will keep both package.json and code clean. I have made all necessary changes. I am giving a sample of config file bellow :
module.alias.config.js ->
module.exports = { _moduleDirectories: ['node_modules_custom'], _moduleAliases: { '@foo2': 'foo2/index.js', '@bar2': 'bar2/index.js' } }
I felt that it will be better if we keep a separate config file(module.alias.config.js) for modules aliases because it will keep both package.json and code clean. I have made all necessary changes. I am giving a sample of config file bellow :
module.alias.config.js ->
module.exports = { _moduleDirectories: ['node_modules_custom'], _moduleAliases: { '@foo2': 'foo2/index.js', '@bar2': 'bar2/index.js' } }