From 82f916122c9488744eba7ff26ddf776ea4a51133 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Thu, 2 Mar 2023 20:59:13 +0100 Subject: [PATCH] Turn off nodeIntegration. Without it disabled, Math.js does not work in production build. --- index.html | 2 +- vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 6e2c1b2..ddfb9de 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@
- + diff --git a/vite.config.ts b/vite.config.ts index 22a3228..1e15b6f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -57,7 +57,7 @@ export default defineConfig({ ]), // Use Node.js API in the Renderer-process renderer({ - nodeIntegration: true, + nodeIntegration: false, }), ], server: !!process.env.VSCODE_DEBUG ? (() => {