English | 简体中文
delete-node-require-cache
NodeJs loads js scripts file with a cache for performance reasons, but sometimes cache can be a problem when we need NodeJs to load new changes of the js file in real time, and this package will remove the cache of the specified js file, and also will parse the content and analyse the dependent js file inside and remove the relevant cache
import { delRequireCache } from 'delete-node-require-cache'
delRequireCache(jsFilePath)