[BUG] Consuming dist-esm instead of dist
Description/Screenshot I'm using version 2.7.3, in production, it tries to consume dist-esm instead of dist. Any help is appreciated. Steps to Reproduce
- OS/Browser:
- SDK Version [e.g. 22]:
- How you initialized the SDK:
Expected behavior
Additional context Add any other context about the problem here.
It is going to be dependent on how you are consuming the package, what type of package you are creating and which packaging system you are using.
The package.json identifies the entry points based on the types
"main": "dist/applicationinsights-web.js",
"module": "dist-esm/applicationinsights-web.js",
module defines the ES6 module entry point while main defines the general entry point
https://stackoverflow.com/questions/42708484/what-is-the-module-package-json-field-for
Thank you for your help @MSNev! We are using a custom transpiler and tree-shaking which imported the wrong package. Is no working. Will close issue.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.