Skip to content

Commit

Permalink
(fix) bundle-size: reuse ts helper functions from tslib instead of in…
Browse files Browse the repository at this point in the history
…lining

Signed-off-by: Alexander Kozinko <xcariba@gmail.com>
  • Loading branch information
xcariba committed Feb 22, 2024
1 parent 4a275b2 commit 27cdbc8
Show file tree
Hide file tree
Showing 57 changed files with 102 additions and 46 deletions.
1 change: 1 addition & 0 deletions configs/base.tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"strictNullChecks": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"importHelpers": true,
"downlevelIteration": true,
"resolveJsonModule": true,
"module": "CommonJS",
Expand Down
1 change: 1 addition & 0 deletions dev-packages/application-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"source-map-support": "^0.5.19",
"string-replace-loader": "^3.1.0",
"style-loader": "^2.0.0",
"tslib": "^2.6.2",
"umd-compat-loader": "^2.1.2",
"webpack": "^5.76.0",
"webpack-cli": "4.7.0",
Expand Down
1 change: 1 addition & 0 deletions dev-packages/application-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"nano": "^10.1.3",
"resolve-package-path": "^4.0.3",
"semver": "^7.5.4",
"tslib": "^2.6.2",
"write-json-file": "^2.2.0"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions dev-packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"puppeteer-core": "19.7.2",
"puppeteer-to-istanbul": "1.4.0",
"temp": "^0.9.1",
"tslib": "^2.6.2",
"yargs": "^15.3.1"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions dev-packages/ffmpeg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
"dependencies": {
"@electron/get": "^2.0.0",
"tslib": "^2.6.2",
"unzipper": "^0.9.11"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions dev-packages/localization-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"deepmerge": "^4.2.2",
"fs-extra": "^4.0.2",
"glob": "^7.2.0",
"tslib": "^2.6.2",
"typescript": "~4.5.5"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions dev-packages/native-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"watch": "theiaext watch"
},
"dependencies": {
"tslib": "^2.6.2",
"webpack": "^5.76.0"
}
}
3 changes: 2 additions & 1 deletion dev-packages/ovsx-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"dependencies": {
"@theia/request": "1.46.0",
"semver": "^7.5.4"
"semver": "^7.5.4",
"tslib": "^2.6.2"
}
}
1 change: 1 addition & 0 deletions dev-packages/private-re-exports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"dependencies": {
"mustache": "^4.2.0",
"semver": "^7.5.4",
"tslib": "^2.6.2",
"yargs": "^15.3.1"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion dev-packages/request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
},
"dependencies": {
"http-proxy-agent": "^5.0.0",
"https-proxy-agent": "^5.0.0"
"https-proxy-agent": "^5.0.0",
"tslib": "^2.6.2"
}
}
5 changes: 3 additions & 2 deletions packages/bulk-edit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/filesystem": "1.46.0",
"@theia/monaco": "1.46.0",
"@theia/monaco-editor-core": "1.83.101",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -48,4 +49,4 @@
"nyc": {
"extends": "../../configs/nyc.json"
}
}
}
3 changes: 2 additions & 1 deletion packages/callhierarchy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/editor": "1.46.0",
"ts-md5": "^1.2.2"
"ts-md5": "^1.2.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
5 changes: 3 additions & 2 deletions packages/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"@theia/core": "1.46.0",
"@theia/monaco": "1.46.0",
"@theia/monaco-editor-core": "1.83.101",
"anser": "^2.0.1"
"anser": "^2.0.1",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -46,4 +47,4 @@
"nyc": {
"extends": "../../configs/nyc.json"
}
}
}
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"safer-buffer": "^2.1.2",
"socket.io": "^4.5.3",
"socket.io-client": "^4.5.3",
"tslib": "^2.6.2",
"uuid": "^9.0.1",
"vscode-languageserver-protocol": "^3.17.2",
"vscode-uri": "^2.1.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"@vscode/debugprotocol": "^1.51.0",
"fast-deep-equal": "^3.1.3",
"jsonc-parser": "^2.2.0",
"p-debounce": "^2.1.0"
"p-debounce": "^2.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/editor-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/editor": "1.46.0",
"@theia/navigator": "1.46.0"
"@theia/navigator": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Theia - Editor Extension",
"dependencies": {
"@theia/core": "1.46.0",
"@theia/variable-resolver": "1.46.0"
"@theia/variable-resolver": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/external-terminal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/editor": "1.46.0",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/file-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/filesystem": "1.46.0",
"@theia/process": "1.46.0",
"@theia/workspace": "1.46.0",
"@vscode/ripgrep": "^1.14.2"
"@vscode/ripgrep": "^1.14.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/filesystem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"stat-mode": "^1.0.0",
"tar-fs": "^1.16.2",
"trash": "^7.2.0",
"tslib": "^2.6.2",
"vscode-languageserver-textdocument": "^1.0.1"
},
"publishConfig": {
Expand Down
3 changes: 2 additions & 1 deletion packages/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/filesystem": "1.46.0",
"@theia/keymaps": "1.46.0",
"@theia/preview": "1.46.0",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"node-ssh": "^12.0.1",
"octicons": "^7.1.0",
"p-queue": "^2.4.2",
"ts-md5": "^1.2.2"
"ts-md5": "^1.2.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/keymaps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/monaco-editor-core": "1.83.101",
"@theia/preferences": "1.46.0",
"@theia/userstorage": "1.46.0",
"jsonc-parser": "^2.2.0"
"jsonc-parser": "^2.2.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@theia/ext-scripts": "1.46.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/markers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/filesystem": "1.46.0",
"@theia/workspace": "1.46.0"
"@theia/workspace": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/memory-inspector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"@theia/core": "1.46.0",
"@theia/debug": "1.46.0",
"@vscode/debugprotocol": "^1.51.0",
"long": "^4.0.0"
"long": "^4.0.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@types/long": "^4.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"react-perfect-scrollbar": "^1.5.3",
"ts-md5": "^1.2.2"
"ts-md5": "^1.2.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Theia - Metrics Extension",
"dependencies": {
"@theia/core": "1.46.0",
"prom-client": "^10.2.0"
"prom-client": "^10.2.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/mini-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@types/mime-types": "^2.1.0",
"mime-types": "^2.1.18",
"pdfobject": "^2.0.201604172",
"tslib": "^2.6.2",
"vhost": "^3.0.2"
},
"publishConfig": {
Expand Down
1 change: 1 addition & 0 deletions packages/monaco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"fast-plist": "^0.1.2",
"idb": "^4.0.5",
"jsonc-parser": "^2.2.0",
"tslib": "^2.6.2",
"vscode-oniguruma": "1.6.1",
"vscode-textmate": "^9.0.0"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/navigator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"@theia/core": "1.46.0",
"@theia/filesystem": "1.46.0",
"@theia/workspace": "1.46.0",
"minimatch": "^5.1.0"
"minimatch": "^5.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/notebook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"@theia/editor": "1.46.0",
"@theia/filesystem": "1.46.0",
"@theia/monaco": "1.46.0",
"react-perfect-scrollbar": "^1.5.8"
"react-perfect-scrollbar": "^1.5.8",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/outline-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.46.0",
"description": "Theia - Outline View Extension",
"dependencies": {
"@theia/core": "1.46.0"
"@theia/core": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"@theia/monaco": "1.46.0",
"@theia/monaco-editor-core": "1.83.101",
"@types/p-queue": "^2.3.1",
"p-queue": "^2.4.2"
"p-queue": "^2.4.2",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"@theia/output": "1.46.0",
"@theia/plugin-ext": "1.46.0",
"@theia/workspace": "1.46.0",
"ps-tree": "^1.2.0"
"ps-tree": "^1.2.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-ext-headless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dependencies": {
"@theia/core": "1.46.0",
"@theia/plugin-ext": "1.46.0",
"@theia/terminal": "1.46.0"
"@theia/terminal": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-ext-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"@theia/userstorage": "1.46.0",
"@theia/workspace": "1.46.0",
"decompress": "^4.2.1",
"filenamify": "^4.1.0"
"filenamify": "^4.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-ext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"mime": "^2.4.4",
"ps-tree": "^1.2.0",
"semver": "^7.5.4",
"tslib": "^2.6.2",
"vhost": "^3.0.2",
"vscode-textmate": "^9.0.0"
},
Expand Down Expand Up @@ -96,4 +97,4 @@
"nyc": {
"extends": "../../configs/nyc.json"
}
}
}
3 changes: 2 additions & 1 deletion packages/plugin-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"@theia/metrics": "1.46.0",
"@theia/monaco-editor-core": "1.83.101",
"@theia/plugin": "1.46.0",
"@theia/plugin-ext": "1.46.0"
"@theia/plugin-ext": "1.46.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/preferences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"async-mutex": "^0.3.1",
"fast-deep-equal": "^3.1.3",
"jsonc-parser": "^2.2.0",
"p-debounce": "^2.1.0"
"p-debounce": "^2.1.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"@types/highlight.js": "^10.1.0",
"@types/markdown-it-anchor": "^4.0.1",
"highlight.js": "10.4.1",
"markdown-it-anchor": "~5.0.0"
"markdown-it-anchor": "~5.0.0",
"tslib": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 27cdbc8

Please sign in to comment.