Skip to content

Commit d373620

Browse files
authored
[perf] vscodeIgnore some unused files to optimize extension size (#1278)
#139 - Ignore some different purpose builds for typescript. We didn't use them. - Ignore typescript localization. We didn't enable localized diagnostic. - Ignore large ESM files, We're currently using common js Brings the size down from 105MB to 42MB. About typescript localization, it's possible to enable this. So if we want to enable it in the future, we can unignore these files.
1 parent 0419d46 commit d373620

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

packages/svelte-vscode/.vscodeignore

+34
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,37 @@
22
/src
33
/scripts
44
/.vscode
5+
6+
node_modules/@types
7+
8+
# typescript localization files
9+
node_modules/typescript/loc
10+
node_modules/typescript/lib/cs
11+
node_modules/typescript/lib/de
12+
node_modules/typescript/lib/es
13+
node_modules/typescript/lib/fr
14+
node_modules/typescript/lib/it
15+
node_modules/typescript/lib/ja
16+
node_modules/typescript/lib/ko
17+
node_modules/typescript/lib/pl
18+
node_modules/typescript/lib/pt-br
19+
node_modules/typescript/lib/ru
20+
node_modules/typescript/lib/tr
21+
node_modules/typescript/lib/zh-cn
22+
node_modules/typescript/lib/zh-tw
23+
24+
# unused typescript builds
25+
node_modules/typescript/lib/tsc.js
26+
node_modules/typescript/lib/tsserver.js
27+
node_modules/typescript/lib/tsserverlibrary.js
28+
node_modules/typescript/lib/tsserverlibrary.d.ts
29+
node_modules/typescript/lib/typescriptServices.js
30+
node_modules/typescript/lib/typescriptServices.d.ts
31+
node_modules/typescript/lib/typingsInstaller.js
32+
33+
# esm builds
34+
node_modules/prettier/esm
35+
node_modules/svelte/compiler.mjs
36+
node_modules/svelte/compiler.mjs.map
37+
node_modules/vscode-css-languageservice/lib/esm
38+
node_modules/vscode-html-languageservice/lib/esm

0 commit comments

Comments
 (0)