Browse Source

Merge branch 'globally-called-functions' of https://github.com/Victorystick/rollup into gh-112

gh-109
Rich-Harris 9 years ago
parent
commit
dfc640be1f
  1. 4
      test/function/globally-called-modifying-function/_config.js
  2. 3
      test/function/globally-called-modifying-function/main.js
  3. 9
      test/function/globally-called-modifying-function/module.js

4
test/function/globally-called-modifying-function/_config.js

@ -0,0 +1,4 @@
module.exports = {
// solo: true, show: true,
description: 'globally called function should be included if it modifies an exported value (#112)'
};

3
test/function/globally-called-modifying-function/main.js

@ -0,0 +1,3 @@
import value from './module.js';
assert.equal( value, 'changed' );

9
test/function/globally-called-modifying-function/module.js

@ -0,0 +1,9 @@
var value = 'original';
function change () {
value = 'changed';
}
change();
export default value;
Loading…
Cancel
Save