mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
3 changed files with 11 additions and 4 deletions
@ -1,4 +1,3 @@ |
|||
module.exports = { |
|||
// solo: true, show: true,
|
|||
description: 'globally called function should be included if it modifies an exported value (#112)' |
|||
}; |
|||
|
@ -1,3 +1,3 @@ |
|||
import value from './module.js'; |
|||
|
|||
assert.equal( value, 'changed' ); |
|||
assert.equal( value, 3 ); |
|||
|
@ -1,9 +1,17 @@ |
|||
var value = 'original'; |
|||
var value = 1; |
|||
|
|||
function change () { |
|||
value = 'changed'; |
|||
value = 2; |
|||
} |
|||
|
|||
function changeAgain () { |
|||
value += 1; |
|||
} |
|||
|
|||
change(); |
|||
|
|||
if ( true ) { |
|||
changeAgain(); |
|||
} |
|||
|
|||
export default value; |
|||
|
Loading…
Reference in new issue