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 3827a4a
Show file tree
Hide file tree
Showing 5 changed files with 14,960 additions and 3 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,941 changes: 14,940 additions & 1 deletion language-server/out/eslintServer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion language-server/update-info.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Archive: src-main.zip
Archive: src-17e79c0f7bcd38f3033d0fbc346a5607fbb4c60f.zip
17e79c0f7bcd38f3033d0fbc346a5607fbb4c60f
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 3827a4a

Please sign in to comment.