function updateHooks() {
    Object.keys(require.extensions).forEach(ext => {
      const fn = require.extensions[ext];
      if (typeof fn === 'function' && fn.name !== 'nodeDevHook') {
        require.extensions[ext] = createHook(fn);
      }
    });
  }
(Re-)install hooks for all registered file extensions.