src/lib/bin.js
/**
 * Remove modules cached by require.
 */
Remove modules cached by require.
Remove modules cached by require .
function clearRequireCache() {
  Object.keys( (require.cache)).forEach((key) => {
    const p = relative('', key)
    if (!p.startsWith('node_modules') && key != require.resolve('../')) {
      delete require.cache[key]
    }
  })
}
function clearRequireCache ( ) { Object . keys ( ( require . cache ) ) . forEach ( ( key ) => { const p = relative ( '' , key ) if ( ! p . startsWith ( 'node_modules' ) && key != require . resolve ( '../' ) ) { delete require . cache [ key ] } } ) }
Remove modules cached by require.
Remove modules cached by require .
/** @type {!Object} */