Replies: 3 comments
-
@kraabrsg In addition to I believe the solution here is:
|
Beta Was this translation helpful? Give feedback.
-
@t1m0thyj thanks for getting back on this! we would do 3.) first but can't for now because of #1573 as for 2.) we were not aware of that vscode ships with, we will try that thank you very much for the tip! As for the optional dependencies, we will have to take a closer look |
Beta Was this translation helpful? Give feedback.
-
Hi @t1m0thyj after importing keytar from vscode and remove the zowe sdk cli package (we just need the "real cli" for now) and bundling the two remaining as external, esbuild produces a 1,7mb file -> Awesome small for our quite big extension -> Thank you! |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
since Version 7.7.0 (i think) several modules cannot be built in a vscode extension (eslint) and have to be defined external (keytar way longer )
build script (via "vsce package" runs "esbuild-base" and then minify) :
dependencies (we tried: 7.7.0, 7,8,0 and 7.9.0 ) :
To fix this errors we declared these libs as external and included the node packages, which raises the size of vsix file from 6 mb to 48 mb (this could be reduce, by manually tryouts what is needed).
Maybe related to:
#1295
https://github.com/zowe/zowe-cli/blob/master/packages/cli/scripts/preinstall.js
Expected and actual results
how to avoid bundling these libraries (keytar, cpufeatures, sshcrpypto) as external with eslint ?
Describe your environment
WIN 10:
node: 18.12.1
vscode extension
Additional context
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions