Skip to content

Commit

Permalink
fix: Remove calls to Registry.add
Browse files Browse the repository at this point in the history
  • Loading branch information
CGNonofr committed Jul 5, 2022
1 parent 5349b98 commit 3a69275
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rollup/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ export default (args: Record<string, string>): rollup.RollupOptions => {
if ((name != null && PURE_FUNCTIONS.has(name)) || PURE_FUNCTIONS.has(node.callee.property.name)) {
addComment(node)
}
// Remove Registry.add calls
if (name != null && name.endsWith('Registry.add')) {
return null
}
}
} else if (node.callee.type === 'Identifier' && PURE_FUNCTIONS.has(node.callee.name)) {
addComment(node)
Expand Down

0 comments on commit 3a69275

Please sign in to comment.