Skip to content

Commit

Permalink
adjust skip pre
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed Jan 18, 2024
1 parent 6ace9a5 commit 8e6b208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/template-compiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ global.currentInject = {
resultSource += `
global.currentInject.render = function (_i, _c, _r, _sc) {
${bindResult.code}
_r(${optimizeRenderLevel > 0 ? 'true' : ''});
_r(${optimizeRenderLevel === 2 ? 'true' : ''});
};\n`
if ((mode === 'tt' || mode === 'swan') && bindResult.propKeys) {
resultSource += `global.currentInject.propKeys = ${JSON.stringify(bindResult.propKeys)};\n`
Expand Down

0 comments on commit 8e6b208

Please sign in to comment.