diff --git a/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js b/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js index f884ce0317e32b9444c5ea5bb3385eacf42c7fc2..7624fc305ab40c630ede3ef4fc68c9cb852d555e 100644 --- a/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js +++ b/packages/vue-cli-plugin-hbuilderx/packages/weex-template-compiler/build.js @@ -1648,6 +1648,7 @@ function parse ( // condense consecutive whitespaces into single space text = text.replace(whitespaceRE, ' '); } + text = text.trim(); var res; var child; if (!inVPre && text !== ' ' && (res = parseText(text, delimiters))) {