Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit a6e0808

Browse files
committed
Move monaco-editor to devDependencies (#317)
Starting with #312 monaco is included in the javascript bundles that are generated by webpack and does not get loaded out of the `node_modules` directory anymore. This means we can move it to `devDepencencies` as it is only needed during build time and save about 80 MiB of space in a production install, reducing its size (with all services installed) from 328 MiB to 248 MiB.
1 parent 8fd2c09 commit a6e0808

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

nodecg-io-core/dashboard/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
"webpack-cli": "^4.9.1",
2424
"style-loader": "^3.3.1",
2525
"css-loader": "^6.5.1",
26-
"monaco-editor-webpack-plugin": "^6.0.0"
26+
"monaco-editor-webpack-plugin": "^6.0.0",
27+
"nodecg-types": "^1.8.3"
2728
},
2829
"dependencies": {
2930
"crypto-js": "^4.1.1",
3031
"monaco-editor": "^0.30.1",
31-
"nodecg-types": "^1.8.3",
3232
"nodecg-io-core": "^0.2.0"
3333
},
3434
"license": "MIT"

services/nodecg-io-debug/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
"webpack-cli": "^4.9.1",
5252
"style-loader": "^3.3.1",
5353
"css-loader": "^6.5.1",
54-
"monaco-editor-webpack-plugin": "^6.0.0"
54+
"monaco-editor-webpack-plugin": "^6.0.0",
55+
"monaco-editor": "^0.30.1"
5556
},
5657
"dependencies": {
5758
"nodecg-io-core": "^0.2.0",
58-
"nodecg-types": "^1.8.3",
59-
"monaco-editor": "^0.30.1"
59+
"nodecg-types": "^1.8.3"
6060
}
6161
}

0 commit comments

Comments
 (0)