esbuild-runner icon indicating copy to clipboard operation
esbuild-runner copied to clipboard

feat: add option to specify whether to use cache; do not use cache for jest

Open smcenlly opened this issue 3 years ago • 1 comments

We discovered an issue using esbuild-runner/jest with our product, Wallaby.js where it was returning old file content for a new transformed file request because the file timestamp (used by the cache) is unchanged.

Jest has its own caching mechanism that is used when the file content is unchanged which means that the caching mechanism should be unnecessary when using jest.

I'm not sure what other contexts esbuild-runner is used, but for the case of jest, I've modified esbuild-runner to not use its internal cache.

smcenlly avatar Mar 10 '22 01:03 smcenlly

(Related issue: https://github.com/wallabyjs/public/issues/2946)

smcenlly avatar Mar 10 '22 01:03 smcenlly