From 470c3c2f3d15fe96ce98e99d5b5fc54620c88258 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 14 Mar 2023 20:11:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:bug:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E8=BE=83=E8=80=81=20WebView=20=E7=89=88=E6=9C=AC=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=90=8E=E5=8D=A1=E5=9C=A8=E5=8A=A0=E8=BD=BD=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=20https://github.com/siyuan-note/siyuan/issues/7660?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/7616?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/webpack.mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/webpack.mobile.js b/app/webpack.mobile.js index 80f1d408f..1bd890c2a 100644 --- a/app/webpack.mobile.js +++ b/app/webpack.mobile.js @@ -23,7 +23,7 @@ module.exports = (env, argv) => { optimization: { minimize: true, minimizer: [ - new EsbuildPlugin(), + new EsbuildPlugin({target: "es6"}), ], }, resolve: { From 57d9f84da3a759d318e751b7f98a5d529a6cb475 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 14 Mar 2023 20:15:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?:bug:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E8=BE=83=E8=80=81=20WebView=20=E7=89=88=E6=9C=AC=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=90=8E=E5=8D=A1=E5=9C=A8=E5=8A=A0=E8=BD=BD=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=20https://github.com/siyuan-note/siyuan/issues/7660?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/7616?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/webpack.desktop.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/webpack.desktop.js b/app/webpack.desktop.js index c8ed207a9..286c5ff6c 100644 --- a/app/webpack.desktop.js +++ b/app/webpack.desktop.js @@ -23,7 +23,7 @@ module.exports = (env, argv) => { optimization: { minimize: true, minimizer: [ - new EsbuildPlugin(), + new EsbuildPlugin({target: "es6"}), ], }, resolve: { @@ -49,6 +49,9 @@ module.exports = (env, argv) => { use: [ { loader: "esbuild-loader", + options: { + target: "es6", + } }, { loader: "ifdef-loader",