You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observe that vsce warns that the package is still not bundled:
❯ vsce package
INFO Detected presence of yarn.lock. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).
Executing prepublish script 'yarn run vscode:prepublish'...
yarn run v1.22.17
$ yarn run esbuild-base --minify
$ esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --minify
out/main.js 815.9kb
✨ Done in 1.51s.
INFO Detected presence of yarn.lock. Using 'yarn' instead of 'npm' (to override this pass '--no-yarn' on the command line).
This extension consists of 1046 files, out of which 571 are JavaScript files. For performance reasons, you should bundle your extension: https://aka.ms/vscode-bundle-extension . You should also exclude unnecessary files by adding them to your .vscodeignore: https://aka.ms/vscode-vscodeignore
DONE Packaged: /Users/skainswo/dev/cuddlefish/vscode-extension/cuddlefish-comments-0.0.0.vsix (1046 files, 1.63MB)
Following the docs, I have the following in my package.json:
Solution turned out to be adding out/ and node_modules/ to .vscodeignore. Docs are just a little confusing in terms of what steps are for webpack and which steps are for esbuild.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
vsce package
.Following the docs, I have the following in my
package.json
:A complete reproduction of this issue can be found on this commit in the
vscode-extension/
directory. I'm runningvsce
v2.2.0.It seems that esbuild is getting run and is working correctly, but for whatever reason the bundled file is not being properly picked up by
vsce
.How can I bundle my extension with esbuild?
The text was updated successfully, but these errors were encountered: