Replies: 2 comments 1 reply
-
You should be able to use lerna to manage local dependencies in the repository. Typically a Tree-shaking is not available with the common-js outputs for Node.js users. So we'll have to split packages and compose them with different use-cases. |
Beta Was this translation helpful? Give feedback.
-
@legendecas Thank you for the response. I had tried out those instructions earlier but they did not work for me. I now remember did not compile the individual packages and hence |
Beta Was this translation helpful? Give feedback.
-
I'm not so familiar with the development methodologies in the world of node and modern javascript, so a newbie question here.
Why is the opentelemetry-js code organized in so many packages when tree-shaking can eliminate the code not used? Or is it that the tree-shaking functionality in package bundlers not very stable? I'm trying to test the functionality in opentelemetry-web for this PR where the changes are across 3 different packages and it has been hard for me - I have tried both using npm link and publishing packages to a local verdaccio registry - while both work they are sometimes confusing and tedious. I am wondering what method people follow for their testing locally during development.
Beta Was this translation helpful? Give feedback.
All reactions