Skip to content

Commit

Permalink
don't minimize the server bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Dec 26, 2023
1 parent 47d6f2b commit 1996129
Show file tree
Hide file tree
Showing 6 changed files with 14,758 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.dependabot export-ignore
.github/ export-ignore
codecov.yml export-ignore
language-server/compile-language-server.sh export-ignore
language-server/webpack-disable-minimize.patch export-ignore
tests/ export-ignore
tox.ini export-ignore
compile-eslint-server.sh export-ignore
unittesting.json export-ignore

# Release script
Expand Down
3 changes: 3 additions & 0 deletions language-server/compile-language-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ pushd "${TEMP_DIR}" || exit
echo 'Installing dependencies...'
npm install

echo 'Applying patches...'
patch -p1 < "${SCRIPT_DIR}/webpack-disable-minimize.patch" || exit

popd || exit


Expand Down
14,734 changes: 14,733 additions & 1 deletion language-server/out/eslintServer.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions language-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-server",
"version": "2.4.1",
"version": "2.3.3",
"private": true,
"author": "Microsoft Corporation",
"license": "MIT",
Expand All @@ -15,9 +15,9 @@
"node": "*"
},
"dependencies": {
"vscode-languageserver": "9.0.1",
"vscode-languageserver-textdocument": "1.0.11",
"vscode-uri": "^3.0.8"
"vscode-languageserver": "8.1.0",
"vscode-languageserver-textdocument": "1.0.9",
"vscode-uri": "^3.0.7"
},
"scripts": {
"webpack": "npm run clean && webpack --mode production --config ./webpack.config.js",
Expand Down
4 changes: 2 additions & 2 deletions language-server/update-info.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Archive: src-main.zip
17e79c0f7bcd38f3033d0fbc346a5607fbb4c60f
Archive: src-747efb780e024eabc48b67ca68a2f8a0c594b753.zip
747efb780e024eabc48b67ca68a2f8a0c594b753
14 changes: 14 additions & 0 deletions language-server/webpack-disable-minimize.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/server/webpack.config.js b/server/webpack.config.js
index abf210a..ffaca68 100644
--- a/server/webpack.config.js
+++ b/server/webpack.config.js
@@ -11,6 +11,9 @@ const withDefaults = require('../shared.webpack.config');
const path = require('path');

module.exports = withDefaults({
+ optimization: {
+ minimize: false
+ },
context: path.join(__dirname),
entry: {
extension: './src/eslintServer.ts',

0 comments on commit 1996129

Please sign in to comment.