mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
10 changed files with 48 additions and 32 deletions
@ -1,10 +0,0 @@ |
|||||
export default function isProgramLevel ( node ) { |
|
||||
do { |
|
||||
if ( node.type === 'Program' ) { |
|
||||
return true; |
|
||||
} |
|
||||
node = node.parent; |
|
||||
} while ( node && !/Function/.test( node.type ) ); |
|
||||
|
|
||||
return false; |
|
||||
} |
|
@ -1,3 +1,4 @@ |
|||||
module.exports = { |
module.exports = { |
||||
|
solo: true, |
||||
description: 'removes an empty if statement' |
description: 'removes an empty if statement' |
||||
}; |
}; |
||||
|
Loading…
Reference in new issue