From c625b3e4d7546bb3eba0648291f1b141ee74d7d0 Mon Sep 17 00:00:00 2001 From: bawwtracs Date: Wed, 22 Mar 2023 04:40:34 +0000 Subject: [PATCH] =?UTF-8?q?update=20vite.config.js.=20vite=20=E7=9A=84=20d?= =?UTF-8?q?ev=20=E4=B8=8E=20build=20=E7=9A=84=20default=20export=20module?= =?UTF-8?q?=20=E8=BE=93=E5=87=BA=E4=B8=8D=E4=B8=80=E8=87=B4=E3=80=82=20?= =?UTF-8?q?=E4=B8=BE=E4=BE=8B=E5=BC=95=E5=85=A5=20quill-blot-formatter=20?= =?UTF-8?q?=E5=8C=85=E6=97=B6=EF=BC=8C=20dev=20=E8=BE=93=E5=87=BA=E4=B8=BA?= =?UTF-8?q?=20commonJs=20=E6=A0=BC=E5=BC=8F=EF=BC=8Cbuild=20=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E4=B8=BA=20es=20module=20=E6=A0=BC=E5=BC=8F=E3=80=82?= =?UTF-8?q?=20=E6=AD=A4=E6=8F=90=E4=BA=A4=E4=B8=BAvite=20github=20issue=20?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88=E3=80=82=E7=9B=B8=E5=85=B3?= =?UTF-8?q?issue=E5=A6=82=E4=B8=8B=EF=BC=9A=20https://github.com/vitejs/vi?= =?UTF-8?q?te/issues/6112=20https://github.com/vitejs/vite/issues/9703?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bawwtracs --- vite.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vite.config.js b/vite.config.js index ea7c967f..12939779 100755 --- a/vite.config.js +++ b/vite.config.js @@ -5,6 +5,15 @@ const {resolve} = require('path') export default defineConfig(({mode, command}) => { const env = loadEnv(mode, process.cwd()) return { + build: { + commonjsOptions: { + transformMixedEsModules: true, + include: [], + }, + }, + optimizeDeps: { + disabled: false, + }, server: { port: 8080, proxy: {