The following line
|
if (sources.code.indexOf("ock(") >= 0 || opts?.instrument) { |
is pretty greedy with determining if Babel should be used for a transform or not.
I have lock() functions in my code that match on this and then cause a transform error.
Should this be changed to sources.code.indexOf("mock(")?
The following line
esbuild-jest/src/index.ts
Line 33 in daa5847
I have
lock()functions in my code that match on this and then cause a transform error.Should this be changed to
sources.code.indexOf("mock(")?