Skip to content
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

Label optional dependencies as external #4905

Merged
merged 1 commit into from
Nov 20, 2021

Conversation

winstliu
Copy link
Contributor

Silences two useless errors. This is taken from the Webpack config in microsoft/azure-pipelines-vscode, which as a disclaimer, I also wrote.

Before:

> [email protected] compileDev
> tsc -p ./ && gulp tslint && webpack --mode development

[17:39:15] Requiring external module ts-node/register
[17:39:19] Using gulpfile ~\repos\omnisharp-vscode\gulpfile.ts
[17:39:19] Starting 'tslint'...
[17:39:26] Finished 'tslint' after 6.23 s
asset extension.js 3.54 MiB [emitted] (name: main) 1 related asset
runtime modules 670 bytes 3 modules
modules by path ./node_modules/ 2.41 MiB
  cacheable modules 2.41 MiB
    javascript modules 2.41 MiB 529 modules
    json modules 1.82 KiB 3 modules
  modules by path ./node_modules/diagnostic-channel-publishers/dist/src/ sync ^.*//lib// 320 bytes
    ./node_modules/diagnostic-channel-publishers/dist/src/ sync ^.*\/lib\/Connection$ 160 bytes [built] [code generated]
    ./node_modules/diagnostic-channel-publishers/dist/src/ sync ^.*\/lib\/Pool$ 160 bytes [built] [code generated]
  ./node_modules/vscode-nls/lib/ sync 160 bytes [built] [code generated]
modules by path ./src/ 599 KiB 110 modules
25 modules

WARNING in ./node_modules/applicationinsights/out/AutoCollection/NativePerformance.js 49:44-89
Module not found: Error: Can't resolve 'applicationinsights-native-metrics' in 'C:\Users\Winston\repos\omnisharp-vscode\node_modules\applicationinsights\out\AutoCollection'
 @ ./node_modules/applicationinsights/out/applicationinsights.js 12:26-71
 @ ./node_modules/vscode-extension-telemetry/lib/telemetryReporter.js 11:18-48
 @ ./src/main.ts 36:37-74

WARNING in ./node_modules/diagnostic-channel-publishers/dist/src/azure-coretracing.pub.js 24:26-71
Module not found: Error: Can't resolve '@opentelemetry/tracing' in 'C:\Users\Winston\repos\omnisharp-vscode\node_modules\diagnostic-channel-publishers\dist\src'
 @ ./node_modules/diagnostic-channel-publishers/dist/src/index.js 5:15-49
 @ ./node_modules/applicationinsights/out/AutoCollection/diagnostic-channel/initialization.js 9:21-61
 @ ./node_modules/applicationinsights/out/AutoCollection/Console.js 2:18-64
 @ ./node_modules/applicationinsights/out/applicationinsights.js 4:25-60
 @ ./node_modules/vscode-extension-telemetry/lib/telemetryReporter.js 11:18-48
 @ ./src/main.ts 36:37-74

...a bunch of warnings about vscode-nls...

8 warnings have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.34.0 compiled with 8 warnings in 16171 ms

After:

> [email protected] compileDev
> tsc -p ./ && gulp tslint && webpack --mode development

[17:35:07] Requiring external module ts-node/register
[17:35:12] Using gulpfile ~\repos\omnisharp-vscode\gulpfile.ts
[17:35:12] Starting 'tslint'...
[17:35:18] Finished 'tslint' after 6.32 s
asset extension.js 3.54 MiB [emitted] (name: main) 1 related asset
runtime modules 670 bytes 3 modules
modules by path ./node_modules/ 2.41 MiB
  cacheable modules 2.41 MiB 532 modules
  modules by path ./node_modules/diagnostic-channel-publishers/dist/src/ sync ^.*//lib// 320 bytes
    ./node_modules/diagnostic-channel-publishers/dist/src/ sync ^.*\/lib\/Connection$ 160 bytes [built] [code generated]
    ./node_modules/diagnostic-channel-publishers/dist/src/ sync ^.*\/lib\/Pool$ 160 bytes [built] [code generated]
  ./node_modules/vscode-nls/lib/ sync 160 bytes [built] [code generated]
modules by path ./src/ 599 KiB 106 modules
optional modules 84 bytes [optional]
  external "applicationinsights-native-metrics" 42 bytes [optional] [built] [code generated]
  external "@opentelemetry/tracing" 42 bytes [optional] [built] [code generated]
25 modules

...a bunch of warnings about vscode-nls...

webpack 5.34.0 compiled with 6 warnings in 16822 ms

@JoeRobich
Copy link
Member

@50Wliu Thanks for the fix!

@winstliu
Copy link
Contributor Author

By the way, is the source code of microsoft.aspnetcore.razor.vscode public? I'd like to get rid of the vscode-nls warnings as well, but it looks like they're coming by way of that package and I can't find the repository for it.

@JoeRobich
Copy link
Member

is the source code of microsoft.aspnetcore.razor.vscode public?

I believe you can find it at https://github.com/dotnet/razor-tooling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants