|
|
@@ -738,13 +738,11 @@ function genExpressionAsPropertyKey(
|
|
|
}
|
|
|
|
|
|
function genComment(node: CommentNode, context: CodegenContext) {
|
|
|
- if (__DEV__) {
|
|
|
- const { push, helper, pure } = context
|
|
|
- if (pure) {
|
|
|
- push(PURE_ANNOTATION)
|
|
|
- }
|
|
|
- push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node)
|
|
|
+ const { push, helper, pure } = context
|
|
|
+ if (pure) {
|
|
|
+ push(PURE_ANNOTATION)
|
|
|
}
|
|
|
+ push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node)
|
|
|
}
|
|
|
|
|
|
function genVNodeCall(node: VNodeCall, context: CodegenContext) {
|