A local-first personal finance app
fix react compiler on Windows (#8049)
Matt Fiddaman8dd3496c61c0
diff --git a/packages/desktop-client/vite.config.mts b/packages/desktop-client/vite.config.mtsindex e0c93a3e65..7e2c4397f6 100644--- a/packages/desktop-client/vite.config.mts+++ b/packages/desktop-client/vite.config.mts@@ -17,12 +17,8 @@ import type { Plugin } from 'vite';import { VitePWA } from 'vite-plugin-pwa';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const reactCompilerInclude = new RegExp(- `^${path- .resolve(__dirname, 'src')- .replaceAll(path.sep, '/')- .replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}/.*\\.[jt]sx$`,-);+const reactCompilerInclude =+ /[\\/]desktop-client[\\/]src[\\/].*\.[jt]sx(?:$|\?)/;const addWatchers = (): Plugin => ({name: 'add-watchers',diff --git a/upcoming-release-notes/8049.md b/upcoming-release-notes/8049.mdnew file mode 100644index 0000000000..5225a9d273--- /dev/null+++ b/upcoming-release-notes/8049.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [matt-fidd]+---++Fix react compiler application on Windows Electron app