Compile warning
jd-lacey opened this issue · 3 comments
Using 4.1.1
Compiled with warnings.
./node_modules/@segment/analytics.js-core/build/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
@jd-lacey Thanks for the report. Just out of curiosity, how are you importing the library? I am not seeing the issue in a test sandbox. This is with both commonjs and ES6-style imports. I am using 4.1.5
Here is the sandbox https://codesandbox.io/s/how-to-use-segment-as-npm-package-forked-wy95f?file=/src/index.js
cc @pooyaj
Related issues:
This issue has been automatically marked stale
because it has not had any activity in the last 60 days. If no further activity occurs within 7 days, it will be closed. Closed does not mean "never", just that it has no momentum to get accomplished any time soon. See CONTRIBUTING.md for more info.
Closing due to staleness. Closed does not mean "never", just that it has no momentum to get accomplished any time soon. See CONTRIBUTING.md for more info.