Record functions in react apps
Closed this issue · 2 comments
lachrist commented
Currently, I'm not able to record functions in react apps.
https://github.com/land-of-apps/appmap-agent-js-react
It looks like we are no longer able to intercept commonjs and native modules.
Maybe it has to do on how jest spawn test files when using jsdom:
Maybe the transformer overwrite Module.prototype._compile
.
lachrist commented
The issue is that Jest does not stack transformers. Adding --transform '{}'
overwrite the previous transform
config field. We need to do some deeper configuration resolution to stack transformers ourselves.
lachrist commented
To support stacking of esm transformers we need this:
jestjs/jest#13759