You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to use v8-compile-cache as a library?
My use-case is to programmatically install the compile cache, then uninstall it, and for other code in node to be able to require('v8-compile-cache') and for it to install correctly.
Right now, if I temporarily override the env var to prevent installation, I can get access to __TEST__ but it will also prevent subsequent code from calling require('v8-compile-cache') because it is in require() cache already. I'm also not sure __TEST__ can be relied on as a stable API surface.
The text was updated successfully, but these errors were encountered:
cspotcode
changed the title
Use as library?
Install / uninstall programmatically?
Mar 2, 2021
Is there a way to use v8-compile-cache as a library?
My use-case is to programmatically install the compile cache, then uninstall it, and for other code in node to be able to
require('v8-compile-cache')
and for it to install correctly.Right now, if I temporarily override the env var to prevent installation, I can get access to
__TEST__
but it will also prevent subsequent code from callingrequire('v8-compile-cache')
because it is in require() cache already. I'm also not sure__TEST__
can be relied on as a stable API surface.The text was updated successfully, but these errors were encountered: