v8-compile-cache
v8-compile-cache copied to clipboard
Require hook for automatic V8 compile cache persistence
Node 18.13 calls delete, Node 18.19 calls set
First of all, thanks for this package and continued maintenance! To avoid [problems with `v8-compile-cache-0` and similar generated directories not being ignored in `.gitignore`](https://github.com/upleveled/preflight/issues/477) and [projects accidentally committing `v8-compile-cache-0` and...
This is an initial workaround for loading files with ESM imports. This works by adding the `importModuleDynamically` option in `vm.Script` constructor, which is required when the script has dynamics `imports()`....
Tap might have coverage on by default, which nukes that test.
Brings compatibility with more recent tap versions.
is it possible to decompile v8-cache into javascript code?
The following code: index.ts: ```typescript require('v8-compile-cache'); import { testFunction } from './testFunction'; function main(): void { try { testFunction(); } catch (err: any) { console.error('Caught error:', err); } } main();...
Reference: #30 - Add failing test for dynamic imports - Add a more relevant error for dynamic imports In order to support dynamic imports and implement `importModuleDynamically`, we have to...
README says it defaults to `/v8-compile-cache-` whereas the code defaults to `/v8-compile-cache-/` Aside from that, I think it'd make more sense for the variable to only specify the base dir,...