Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ui/config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const os = require("os");
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");

module.exports = function override(config, env) {
Expand All @@ -13,6 +14,17 @@ module.exports = function override(config, env) {
"racket",
],
};
// This is a hack to fix the issue with hot reloading on Windows WSL (Docker)
// See: https://github.com/microsoft/WSL/issues/4739
// To prevent performance issues, we will only enable this on Windows WSL
const isWSL =
process.platform === "linux" && os.release().includes("microsoft");
if (isWSL) {
config.watchOptions = {
ignored: /node_modules/,
poll: true,
};
}
// by default load all the languages
config.plugins.push(new MonacoWebpackPlugin());
config.resolve.fallback = {
Expand Down