提交 fe920bb8 编写于 作者: D DCloud_LXH

chore: uni-app-x compiler

上级 8ed99102
......@@ -46,7 +46,7 @@ module.exports = function (md, opts) {
path.forEach(key => {
temp = temp[key];
});
const parseTokens = md.parse(temp);
const parseTokens = md.parse(temp, undefined, false);
/* parseTokens.forEach(token => {
if (token.type === 'heading_open') {
const id = token.attrGet('id')
......
......@@ -8,5 +8,5 @@
`uni-app x`编译器引入了编译缓存机制,以优化开发体验。
在App端,`uni-app x`首先将uts和uvue编译为平台原生语言(如Kotlin),然后经过平台配套的编译器进行打包运行。由于平台原生语言的打包编译过程耗时较长,因此编译器引入了缓存机制来加快开发过程。
在编译时,开发者的uts和uvue代码的编译结果会被持久化为缓存。当下次运行时,如果代码没有发生变动,编译器会优先使用缓存中的编译结果,从而加快编译速度。
如果您不想使用缓存,可以在HBuilderX运行窗口勾选`清理构建缓存`![](README_files/1.jpg)
如果您不想使用缓存,可以在HBuilderX运行窗口勾选`清理构建缓存`![](https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni-app-x/clean-up-the-build-cache.jpg)#{.zooming width="200px" height="200px"}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册