Skip to content

Commit 093cd01

Browse files
committed
(fix) bundle-size: reuse ts helper functions from tslib instead of inlining
Signed-off-by: Alexander Kozinko <[email protected]>
1 parent 3e7f6ee commit 093cd01

File tree

57 files changed

+94
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+94
-38
lines changed

configs/base.tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"strictNullChecks": true,
1313
"experimentalDecorators": true,
1414
"emitDecoratorMetadata": true,
15+
"importHelpers": true,
1516
"downlevelIteration": true,
1617
"resolveJsonModule": true,
1718
"module": "CommonJS",

dev-packages/application-manager/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"source-map-support": "^0.5.19",
6060
"string-replace-loader": "^3.1.0",
6161
"style-loader": "^2.0.0",
62+
"tslib": "^2.6.2",
6263
"umd-compat-loader": "^2.1.2",
6364
"webpack": "^5.76.0",
6465
"webpack-cli": "4.7.0",

dev-packages/application-package/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"nano": "^9.0.5",
4040
"resolve-package-path": "^4.0.3",
4141
"semver": "^7.5.4",
42+
"tslib": "^2.6.2",
4243
"write-json-file": "^2.2.0"
4344
},
4445
"devDependencies": {

dev-packages/cli/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"puppeteer-core": "19.7.2",
5353
"puppeteer-to-istanbul": "1.4.0",
5454
"temp": "^0.9.1",
55+
"tslib": "^2.6.2",
5556
"yargs": "^15.3.1"
5657
},
5758
"devDependencies": {

dev-packages/ffmpeg/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@electron/get": "^2.0.0",
32+
"tslib": "^2.6.2",
3233
"unzipper": "^0.9.11"
3334
},
3435
"devDependencies": {

dev-packages/localization-manager/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"deepmerge": "^4.2.2",
3737
"fs-extra": "^4.0.2",
3838
"glob": "^7.2.0",
39+
"tslib": "^2.6.2",
3940
"typescript": "~4.5.5"
4041
},
4142
"devDependencies": {

dev-packages/native-webpack-plugin/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"watch": "theiaext watch"
3030
},
3131
"dependencies": {
32+
"tslib": "^2.6.2",
3233
"webpack": "^5.76.0"
3334
}
3435
}

dev-packages/ovsx-client/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@theia/request": "1.46.0",
33-
"semver": "^7.5.4"
33+
"semver": "^7.5.4",
34+
"tslib": "^2.6.2"
3435
}
3536
}

dev-packages/private-re-exports/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"dependencies": {
2727
"mustache": "^4.2.0",
2828
"semver": "^7.5.4",
29+
"tslib": "^2.6.2",
2930
"yargs": "^15.3.1"
3031
},
3132
"devDependencies": {

dev-packages/request/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"dependencies": {
3232
"http-proxy-agent": "^5.0.0",
33-
"https-proxy-agent": "^5.0.0"
33+
"https-proxy-agent": "^5.0.0",
34+
"tslib": "^2.6.2"
3435
}
3536
}

packages/bulk-edit/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"@theia/filesystem": "1.46.0",
99
"@theia/monaco": "1.46.0",
1010
"@theia/monaco-editor-core": "1.72.3",
11-
"@theia/workspace": "1.46.0"
11+
"@theia/workspace": "1.46.0",
12+
"tslib": "^2.6.2"
1213
},
1314
"publishConfig": {
1415
"access": "public"

packages/callhierarchy/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dependencies": {
66
"@theia/core": "1.46.0",
77
"@theia/editor": "1.46.0",
8-
"ts-md5": "^1.2.2"
8+
"ts-md5": "^1.2.2",
9+
"tslib": "^2.6.2"
910
},
1011
"publishConfig": {
1112
"access": "public"

packages/console/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"@theia/core": "1.46.0",
77
"@theia/monaco": "1.46.0",
88
"@theia/monaco-editor-core": "1.72.3",
9-
"anser": "^2.0.1"
9+
"anser": "^2.0.1",
10+
"tslib": "^2.6.2"
1011
},
1112
"publishConfig": {
1213
"access": "public"

packages/core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"safer-buffer": "^2.1.2",
6969
"socket.io": "^4.5.3",
7070
"socket.io-client": "^4.5.3",
71+
"tslib": "^2.6.2",
7172
"uuid": "^8.3.2",
7273
"vscode-languageserver-protocol": "^3.17.2",
7374
"vscode-uri": "^2.1.1",

packages/debug/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"@vscode/debugprotocol": "^1.51.0",
2020
"fast-deep-equal": "^3.1.3",
2121
"jsonc-parser": "^2.2.0",
22-
"p-debounce": "^2.1.0"
22+
"p-debounce": "^2.1.0",
23+
"tslib": "^2.6.2"
2324
},
2425
"publishConfig": {
2526
"access": "public"

packages/editor-preview/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dependencies": {
66
"@theia/core": "1.46.0",
77
"@theia/editor": "1.46.0",
8-
"@theia/navigator": "1.46.0"
8+
"@theia/navigator": "1.46.0",
9+
"tslib": "^2.6.2"
910
},
1011
"publishConfig": {
1112
"access": "public"

packages/editor/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Theia - Editor Extension",
55
"dependencies": {
66
"@theia/core": "1.46.0",
7-
"@theia/variable-resolver": "1.46.0"
7+
"@theia/variable-resolver": "1.46.0",
8+
"tslib": "^2.6.2"
89
},
910
"publishConfig": {
1011
"access": "public"

packages/external-terminal/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dependencies": {
66
"@theia/core": "1.46.0",
77
"@theia/editor": "1.46.0",
8-
"@theia/workspace": "1.46.0"
8+
"@theia/workspace": "1.46.0",
9+
"tslib": "^2.6.2"
910
},
1011
"publishConfig": {
1112
"access": "public"

packages/file-search/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"@theia/filesystem": "1.46.0",
99
"@theia/process": "1.46.0",
1010
"@theia/workspace": "1.46.0",
11-
"@vscode/ripgrep": "^1.14.2"
11+
"@vscode/ripgrep": "^1.14.2",
12+
"tslib": "^2.6.2"
1213
},
1314
"publishConfig": {
1415
"access": "public"

packages/filesystem/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"stat-mode": "^1.0.0",
2020
"tar-fs": "^1.16.2",
2121
"trash": "^7.2.0",
22+
"tslib": "^2.6.2",
2223
"uuid": "^8.0.0",
2324
"vscode-languageserver-textdocument": "^1.0.1"
2425
},

packages/getting-started/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"@theia/filesystem": "1.46.0",
99
"@theia/keymaps": "1.46.0",
1010
"@theia/preview": "1.46.0",
11-
"@theia/workspace": "1.46.0"
11+
"@theia/workspace": "1.46.0",
12+
"tslib": "^2.6.2"
1213
},
1314
"publishConfig": {
1415
"access": "public"

packages/git/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"node-ssh": "^12.0.1",
2222
"octicons": "^7.1.0",
2323
"p-queue": "^2.4.2",
24-
"ts-md5": "^1.2.2"
24+
"ts-md5": "^1.2.2",
25+
"tslib": "^2.6.2"
2526
},
2627
"publishConfig": {
2728
"access": "public"

packages/keymaps/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"@theia/monaco-editor-core": "1.72.3",
99
"@theia/preferences": "1.46.0",
1010
"@theia/userstorage": "1.46.0",
11-
"jsonc-parser": "^2.2.0"
11+
"jsonc-parser": "^2.2.0",
12+
"tslib": "^2.6.2"
1213
},
1314
"devDependencies": {
1415
"@theia/ext-scripts": "1.46.0"

packages/markers/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dependencies": {
66
"@theia/core": "1.46.0",
77
"@theia/filesystem": "1.46.0",
8-
"@theia/workspace": "1.46.0"
8+
"@theia/workspace": "1.46.0",
9+
"tslib": "^2.6.2"
910
},
1011
"publishConfig": {
1112
"access": "public"

packages/memory-inspector/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"@theia/core": "1.46.0",
3131
"@theia/debug": "1.46.0",
3232
"@vscode/debugprotocol": "^1.51.0",
33-
"long": "^4.0.0"
33+
"long": "^4.0.0",
34+
"tslib": "^2.6.2"
3435
},
3536
"devDependencies": {
3637
"@types/long": "^4.0.0"

packages/messages/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dependencies": {
66
"@theia/core": "1.46.0",
77
"react-perfect-scrollbar": "^1.5.3",
8-
"ts-md5": "^1.2.2"
8+
"ts-md5": "^1.2.2",
9+
"tslib": "^2.6.2"
910
},
1011
"publishConfig": {
1112
"access": "public"

packages/metrics/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Theia - Metrics Extension",
55
"dependencies": {
66
"@theia/core": "1.46.0",
7-
"prom-client": "^10.2.0"
7+
"prom-client": "^10.2.0",
8+
"tslib": "^2.6.2"
89
},
910
"publishConfig": {
1011
"access": "public"

packages/mini-browser/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@types/mime-types": "^2.1.0",
99
"mime-types": "^2.1.18",
1010
"pdfobject": "^2.0.201604172",
11+
"tslib": "^2.6.2",
1112
"uuid": "^8.0.0",
1213
"vhost": "^3.0.2"
1314
},

packages/monaco/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"fast-plist": "^0.1.2",
1414
"idb": "^4.0.5",
1515
"jsonc-parser": "^2.2.0",
16+
"tslib": "^2.6.2",
1617
"vscode-oniguruma": "1.6.1",
1718
"vscode-textmate": "^9.0.0"
1819
},

packages/navigator/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"@theia/core": "1.46.0",
77
"@theia/filesystem": "1.46.0",
88
"@theia/workspace": "1.46.0",
9-
"minimatch": "^5.1.0"
9+
"minimatch": "^5.1.0",
10+
"tslib": "^2.6.2"
1011
},
1112
"publishConfig": {
1213
"access": "public"

packages/notebook/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@theia/editor": "1.46.0",
88
"@theia/filesystem": "1.46.0",
99
"@theia/monaco": "1.46.0",
10+
"tslib": "^2.6.2",
1011
"uuid": "^8.3.2"
1112
},
1213
"publishConfig": {

packages/outline-view/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"version": "1.46.0",
44
"description": "Theia - Outline View Extension",
55
"dependencies": {
6-
"@theia/core": "1.46.0"
6+
"@theia/core": "1.46.0",
7+
"tslib": "^2.6.2"
78
},
89
"publishConfig": {
910
"access": "public"

packages/output/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"@theia/monaco": "1.46.0",
99
"@theia/monaco-editor-core": "1.72.3",
1010
"@types/p-queue": "^2.3.1",
11-
"p-queue": "^2.4.2"
11+
"p-queue": "^2.4.2",
12+
"tslib": "^2.6.2"
1213
},
1314
"publishConfig": {
1415
"access": "public"

packages/plugin-dev/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"@theia/output": "1.46.0",
1212
"@theia/plugin-ext": "1.46.0",
1313
"@theia/workspace": "1.46.0",
14-
"ps-tree": "^1.2.0"
14+
"ps-tree": "^1.2.0",
15+
"tslib": "^2.6.2"
1516
},
1617
"publishConfig": {
1718
"access": "public"

packages/plugin-ext-headless/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"dependencies": {
88
"@theia/core": "1.46.0",
99
"@theia/plugin-ext": "1.46.0",
10-
"@theia/terminal": "1.46.0"
10+
"@theia/terminal": "1.46.0",
11+
"tslib": "^2.6.2"
1112
},
1213
"publishConfig": {
1314
"access": "public"

packages/plugin-ext-vscode/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"@theia/userstorage": "1.46.0",
1818
"@theia/workspace": "1.46.0",
1919
"decompress": "^4.2.1",
20-
"filenamify": "^4.1.0"
20+
"filenamify": "^4.1.0",
21+
"tslib": "^2.6.2"
2122
},
2223
"publishConfig": {
2324
"access": "public"

packages/plugin-ext/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"mime": "^2.4.4",
4747
"ps-tree": "^1.2.0",
4848
"semver": "^7.5.4",
49+
"tslib": "^2.6.2",
4950
"uuid": "^8.0.0",
5051
"vhost": "^3.0.2",
5152
"vscode-textmate": "^9.0.0"

packages/plugin-metrics/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"@theia/metrics": "1.46.0",
88
"@theia/monaco-editor-core": "1.72.3",
99
"@theia/plugin": "1.46.0",
10-
"@theia/plugin-ext": "1.46.0"
10+
"@theia/plugin-ext": "1.46.0",
11+
"tslib": "^2.6.2"
1112
},
1213
"publishConfig": {
1314
"access": "public"

packages/preferences/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"async-mutex": "^0.3.1",
1414
"fast-deep-equal": "^3.1.3",
1515
"jsonc-parser": "^2.2.0",
16-
"p-debounce": "^2.1.0"
16+
"p-debounce": "^2.1.0",
17+
"tslib": "^2.6.2"
1718
},
1819
"publishConfig": {
1920
"access": "public"

packages/preview/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"@types/highlight.js": "^10.1.0",
1111
"@types/markdown-it-anchor": "^4.0.1",
1212
"highlight.js": "10.4.1",
13-
"markdown-it-anchor": "~5.0.0"
13+
"markdown-it-anchor": "~5.0.0",
14+
"tslib": "^2.6.2"
1415
},
1516
"publishConfig": {
1617
"access": "public"

packages/process/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"dependencies": {
66
"@theia/core": "1.46.0",
77
"node-pty": "0.11.0-beta17",
8-
"string-argv": "^0.1.1"
8+
"string-argv": "^0.1.1",
9+
"tslib": "^2.6.2"
910
},
1011
"publishConfig": {
1112
"access": "public"

packages/property-view/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Theia - Property View Extension",
55
"dependencies": {
66
"@theia/core": "1.46.0",
7-
"@theia/filesystem": "1.46.0"
7+
"@theia/filesystem": "1.46.0",
8+
"tslib": "^2.6.2"
89
},
910
"publishConfig": {
1011
"access": "public"

packages/remote/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"ssh2-sftp-client": "^9.1.0",
1717
"socket.io": "^4.5.3",
1818
"socket.io-client": "^4.5.3",
19+
"tslib": "^2.6.2",
1920
"uuid": "^8.0.0"
2021
},
2122
"publishConfig": {

0 commit comments

Comments
 (0)