From 677717918775bb8aa2061ea03e57e4f57158e63e Mon Sep 17 00:00:00 2001 From: kfule Date: Sat, 28 Sep 2024 07:55:14 +0900 Subject: [PATCH] add comment why parameter destructuring is not used --- render/domFor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/render/domFor.js b/render/domFor.js index f6c7e0bf4..aed2921d2 100644 --- a/render/domFor.js +++ b/render/domFor.js @@ -3,6 +3,8 @@ var delayedRemoval = new WeakMap function *domFor(vnode, object = {}) { + // To avoid unintended mangling of the internal bundler, + // parameter destructuring is not used here. var dom = vnode.dom var domSize = vnode.domSize var generation = object.generation @@ -22,4 +24,4 @@ function *domFor(vnode, object = {}) { module.exports = { delayedRemoval: delayedRemoval, domFor: domFor, -} \ No newline at end of file +}