vue-hook-optimizer 0.0.51 → 0.0.52

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -135,12 +135,18 @@ var NodeCollection = class {
135
135
  function getComment(node) {
136
136
  let comment = "";
137
137
  node.leadingComments?.forEach((_comment) => {
138
+ if (_comment.loc.end.line > node.loc.start.line) {
139
+ return;
140
+ }
138
141
  if (_comment.value.trim().startsWith("*")) {
139
142
  comment += `${_comment.value.trim().replace(/^[\s]*\*+[\s]*\**/gm, "").trim()}
140
143
  `;
141
144
  }
142
145
  });
143
146
  node.trailingComments?.forEach((_comment) => {
147
+ if (_comment.loc.end.line > node.loc.start.line) {
148
+ return;
149
+ }
144
150
  if (_comment.value.trim().startsWith("*")) {
145
151
  comment += `${_comment.value.trim().replace(/^[\s]*\*+[\s]*\**/gm, "").trim()}
146
152
  `;