-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack vscode/extension-telemetry
to avoid that clients need to know exclusion rules
#150
Comments
FYI @lramos15 |
We used to bundle, but stopped with #119 as suggested by a bunch of people on the team as bundlers didn't play nice with my minified pre-bundled output. Do we know why we need so many externals and these aren't included when we NPM install and then properly tree shaked by the bundler? I find the telemetry package very difficult and I'm not sure why. What is the best practice for shipping an npm package? |
IMO, in general, packaging a utility node module is not recommended. But Given that So unless we can use something leaner than As a side note, it looks like we disable all functionality but |
See microsoft/ApplicationInsights-node.js#1102 for the |
When an extension has a dependency to
vscode/extension-telemetry
and wants to webpack itself, it struggles with vscode/extension-telemetry as not all dependences can be resolvedfor
@vscode/[email protected]
the following is necessary:for
@vscode/[email protected]
this is not enough:It would be better if
vscode/extension-telemetry
uses a packager itself (webpack or esbuild)dependencies
go away (become devDependencies). Which reduces the number of node modules that need to be installed when depending onvscode/extension-telemetry
.vscode/extension-telemetry
to further reduce its size by defining stubs for even more functionality that isn't used.The text was updated successfully, but these errors were encountered: