From 2ecef98f4486c2fb23b258a034fdb15fe5d93897 Mon Sep 17 00:00:00 2001 From: _Kerman Date: Mon, 24 Jun 2024 17:06:04 +0800 Subject: [PATCH] fix: `@vue/reactivity` should be replaced in build mode, close #3 --- packages/core/vite.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/core/vite.config.ts b/packages/core/vite.config.ts index bee0fa8..bff65ca 100644 --- a/packages/core/vite.config.ts +++ b/packages/core/vite.config.ts @@ -21,6 +21,11 @@ export default defineConfig({ './shim.d.ts', ], rollupTypes: true, + beforeWriteFile(_, content) { + return { + content: content.replaceAll('\'@vue/reactivity\'', '\'@reactive-vscode/reactivity\''), + } + }, }), ], build: {