Skip to content

Commit

Permalink
frontend: use monaco-editor fixed version 0.50.0
Browse files Browse the repository at this point in the history
  • Loading branch information
malinskibeniamin committed Oct 10, 2024
1 parent f1643c3 commit 23debd4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 28 deletions.
14 changes: 7 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"mobx": "^6.10",
"mobx-react": "^7.6",
"moment": "^2.29.4",
"monaco-editor": "^0.52.0",
"monaco-editor": "0.50.0",
"monaco-yaml": "^5.2.2",
"node-polyfill-webpack-plugin": "^4.0.0",
"pretty-bytes": "^5.6.0",
Expand Down
21 changes: 1 addition & 20 deletions frontend/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default defineConfig({
},
tools: {
rspack: (config, { appendPlugins }) => {
config.optimization ||= {};
config.resolve ||= {};
config.resolve.alias ||= {};
config.output ||= {};
Expand All @@ -67,24 +66,6 @@ export default defineConfig({

config.output.publicPath = 'auto';

config.optimization.splitChunks = {
chunks: 'all',
minChunks: 1,
minSize: 500 * 1024,
maxSize: 1000 * 1024,
maxAsyncRequests: 30,
maxInitialRequests: 30,
cacheGroups: {
monaco: {
chunks: 'all',
test: /[\\/]node_modules[\\/]monaco-editor/,
priority: 1000,
name: 'monaco',
reuseExistingChunk: true,
},
}
}

const plugins = [
new NodePolyfillPlugin({
additionalAliases: ['process'],
Expand All @@ -105,4 +86,4 @@ export default defineConfig({
appendPlugins(plugins);
},
},
});
});

0 comments on commit 23debd4

Please sign in to comment.