From 621308bd0000889d03a9009db181ffd8b0d38e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 11 Apr 2023 17:34:52 +0200 Subject: [PATCH] fix(editor-ui): Update vite legacy-plugin browser target (no-changelog) Currently the generated `polyfills-legacy-*.js` has a md5sum that conflicts with some known malware, which is making n8n instances being incorrectly marked as malware. Changing the browserlist target changes the browser coverage from [88.3%](https://browsersl.ist/#q=defaults) to [88.2%](https://browsersl.ist/#q=%3E1%25%2Clast+3+versions%2Cnot+dead), and changes the md5sum from ` 7bbe04e33326032f3bf00ac7685bfccb` to `457638e9318cc92d88d45730c81724e4`. --- packages/editor-ui/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/vite.config.ts b/packages/editor-ui/vite.config.ts index 431192d78730a..4caa1176a937f 100644 --- a/packages/editor-ui/vite.config.ts +++ b/packages/editor-ui/vite.config.ts @@ -84,7 +84,7 @@ if (NODE_ENV === 'test') { const plugins = [ vue(), legacy({ - targets: ['defaults', 'not IE 11'], + targets: ['>1%', 'last 3 versions', 'not dead'], }), monacoEditorPlugin({ publicPath: 'assets/monaco-editor',