chore: reduce vscode extension bundle size (#1647)

This commit is contained in:
华丽 2024-07-03 15:09:31 +08:00 • committed by GitHub
parent ee2885549d
commit 73b8caa776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -24,4 +24,7 @@ scripts
server/exe/**
!out/node_modules/**
!node_modules/@vscode/ripgrep/bin/rg
!node_modules/@vscode/ripgrep/bin/rg
media/**/*.gif
!media/sidebar.gif

View file

@ -9,7 +9,7 @@ const esbuildConfig = {
external: ["vscode", "esbuild", "./xhr-sync-worker.js"],
format: "cjs",
platform: "node",
sourcemap: true,
sourcemap: false,
loader: {
// eslint-disable-next-line @typescript-eslint/naming-convention
".node": "file",