You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When agent-js is bundled within a lib that gets imported in Webpack projects, Webpack throws following errors:
Warning: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Describe the solution you'd like
Don't think it is a bug but, I am guessing it is a Polyfill thing. Therefore would appreciate any help resolving this issue.
On the lib side, Node libraries are pollyfied. I tried to create a library that do not use agent-js but process and buffer and no such warning was displayed. Issue popups when agent-js gets bundled.
e.g. library I used for testing contains only following code:
It seems that if I build the library with vite / rollup I don't face the issue. I guess something in the esbuild setup of the lib therefore I close this (at least for now, not 100% sure).
Is your feature request related to a problem? Please describe.
When
agent-js
is bundled within a lib that gets imported in Webpack projects, Webpack throws following errors:Describe the solution you'd like
Don't think it is a bug but, I am guessing it is a Polyfill thing. Therefore would appreciate any help resolving this issue.
On the lib side, Node libraries are pollyfied. I tried to create a library that do not use agent-js but process and buffer and no such warning was displayed. Issue popups when agent-js gets bundled.
e.g. library I used for testing contains only following code:
Note: peer dependencies is not an option.
Additional context
Repro
add following in code
and build
The text was updated successfully, but these errors were encountered: