From ebbfccfd2483f97ac08144674f68fcd8851cda9e Mon Sep 17 00:00:00 2001 From: fasttian Date: Wed, 2 Mar 2022 03:06:01 +0000 Subject: [PATCH] update --- docs/migration-to-vue3.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/migration-to-vue3.md b/docs/migration-to-vue3.md index 42a04f58b..7a2c925fb 100644 --- a/docs/migration-to-vue3.md +++ b/docs/migration-to-vue3.md @@ -349,4 +349,22 @@ Vuex // 如果 nvue 使用 vuex 的各种map工具方法时,必须 return Vuex } } - ``` \ No newline at end of file + ``` + - App,小程序端源码调试,需要在 vite.config.js 中主动开启 sourcemap + + ```js + import { defineConfig } from "vite"; + import uni from "@dcloudio/vite-plugin-uni"; + + /** + * @type {import('vite').UserConfig} + */ + + export default defineConfig({ + build: { + sourcemap: true, + }, + + plugins: [uni()], + }); + ``` -- GitLab