From 6706aa6664a6aa24cdea8347c0cf01c24f5f8bbd 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, 25 Feb 2025 12:22:13 +0100 Subject: [PATCH] fix(editor): Fix the path to which tree-sitter wasm files are copied to (no-changelog) (#13389) --- packages/editor-ui/vite.config.mts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/vite.config.mts b/packages/editor-ui/vite.config.mts index df9841eacc..1d7514ca09 100644 --- a/packages/editor-ui/vite.config.mts +++ b/packages/editor-ui/vite.config.mts @@ -66,10 +66,13 @@ const plugins = [ }), viteStaticCopy({ targets: [ - { src: pathPosix.resolve('node_modules/web-tree-sitter/tree-sitter.wasm'), dest: 'public' }, + { + src: pathPosix.resolve('node_modules/web-tree-sitter/tree-sitter.wasm'), + dest: resolve(__dirname, 'dist'), + }, { src: pathPosix.resolve('node_modules/curlconverter/dist/tree-sitter-bash.wasm'), - dest: 'public', + dest: resolve(__dirname, 'dist'), }, ], }),