cspotcode / cspotcode/v8-compile-cache-lib

Support for loading modules with dynamic imports

Open
#6 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Upstream has a bug related to requiring files with ESM `import()` calls. The bug appears to be tracked on https://github.com/zertosh/v8-compile-cache/issues/41

There are a few libraries affected by this, notably NX (see open issue https://github.com/nrwl/nx/issues/18974) and ESLint (which dropped v8-compile-cache due to this https://twitter.com/slicknet/status/1559619176230047744)

I've got a workaround which appears to work for my use case (see the NX issue). I've filled a PR with that workaround in upstream https://github.com/zertosh/v8-compile-cache/pull/47

Since this for appears to be more active than upstream, I thought it would be good to bring the discussion here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.