提交 4d54af22 编写于 作者: D DCloud_LXH

Merge branch 'master' of https://gitee.com/dcloud/unidocs-zh into vuepress

......@@ -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()],
});
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册