We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3858c2 commit 0b4770eCopy full SHA for 0b4770e
lib/template-compiler/index.js
@@ -40,6 +40,7 @@ module.exports = function (html) {
40
: compiler.compile
41
42
var compiled = compile(html, compilerOptions)
43
+ var code
44
45
// for mp => *.wxml
46
compileWxml.call(this, compiled, html)
@@ -51,7 +52,6 @@ module.exports = function (html) {
51
52
})
53
}
54
- var code
55
if (compiled.errors && compiled.errors.length) {
56
this.emitError(
57
`\n Error compiling template:\n${pad(html)}\n` +
@@ -94,6 +94,9 @@ module.exports = function (html) {
94
95
this.callback(null, code)
96
97
+ .catch(() => {
98
+ this.callback(null, code)
99
+ })
100
101
102
function toFunction (code) {
0 commit comments