reload nodejs modules with delcache
npm install reload-modulesreload nodejs modules with batchdelcache


``bash`use npm
npm install reload-modulesor use yarn
yarn add reload-modules
Node.js 10+
`js
import Reloader from 'reload-modules';
const reloader = new Reloader({
fileMap: {
mod1: 'abcd',
mod2: 'efcg',
},
context: resolve(__dirname, './fixtures'),
commonRootPath: resolve(__dirname, './fixtures/mainModule.js'),
});
reloader.reload({
mod1: 'xxxx',
mod2: 'xxxx',
});
``