Skip to content

Commit

Permalink
fix(mini-runner): 修复支付宝小程序预渲染报错, fix #7111
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Jul 24, 2020
1 parent 230a239 commit c7edb18
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ require(\\"./taro\\");
}, [ [ 21, 0, 1, 3, 2 ] ] ]);


if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -2176,7 +2176,7 @@ require(\\"./taro\\");
__webpack_exports__[\\"a\\"] = region;
}
}, [ [ 27, 0, 1, 3, 2 ] ] ]);
if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -2299,7 +2299,7 @@ require(\\"./taro\\");
},
26: function(module, exports, __webpack_require__) {}
}, [ [ 25, 0, 1, 3, 2 ] ] ]);
if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -2708,7 +2708,7 @@ require(\\"./taro\\");
}, [ [ 17, 0, 1, 3, 2 ] ] ]);


if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -4800,7 +4800,7 @@ require(\\"./taro\\");
}).call(this, __webpack_require__(10));
}
}, [ [ 23, 0, 1, 3, 2 ] ] ]);
if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -4916,7 +4916,7 @@ require(\\"./taro\\");
},
22: function(module, exports, __webpack_require__) {}
}, [ [ 21, 0, 1, 3, 2 ] ] ]);
if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -5313,7 +5313,7 @@ require(\\"./taro\\");
}, [ [ 17, 0, 1, 3, 2 ] ] ]);


if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -7405,7 +7405,7 @@ require(\\"./taro\\");
}).call(this, __webpack_require__(10));
}
}, [ [ 23, 0, 1, 3, 2 ] ] ]);
if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down Expand Up @@ -7521,7 +7521,7 @@ require(\\"./taro\\");
},
22: function(module, exports, __webpack_require__) {}
}, [ [ 21, 0, 1, 3, 2 ] ] ]);
if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}

Expand Down
2 changes: 1 addition & 1 deletion packages/taro-mini-runner/src/prerender/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class Prerender {
path = this.getRealPath(path)
return new Promise((resolve) => {
const s = `
if (typeof PRERENDER !== 'undefiend') {
if (typeof PRERENDER !== 'undefined') {
module.exports = global._prerender
}`
fs.appendFile(path, s, 'utf8', () => {
Expand Down

0 comments on commit c7edb18

Please sign in to comment.