Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shoonia committed Jul 24, 2023
1 parent 7414e23 commit e785988
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ const createScope = getData => event => {
};

const getRepeater = event => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let node = event.target;
if (event.context.type !== 'COMPONENT_SCOPE') {
console.error(`repeater-scope: "#${node.id}" outside of any $w.Repeater context`);
}
while ((node = node.parent).type !== '$w.Repeater') {
/**/
}
while ((node = node.parent).type !== '$w.Repeater') {}
return node;
};

Expand Down
5 changes: 1 addition & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ const createScope = getData => event => {
};

const getRepeater = event => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let node = event.target;
if (event.context.type !== 'COMPONENT_SCOPE') {
console.error(`repeater-scope: "#${node.id}" outside of any $w.Repeater context`);
}
while ((node = node.parent).type !== '$w.Repeater') {
/**/
}
while ((node = node.parent).type !== '$w.Repeater') {}
return node;
};

Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
presets: [
'@babel/typescript',
],
comments: false,
})
]
};

0 comments on commit e785988

Please sign in to comment.