mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
4 changed files with 16 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'shorthand properties referencing deshadowed variables are expanded' |
|||
}; |
@ -0,0 +1,3 @@ |
|||
export default function answer () { |
|||
return 42; |
|||
} |
@ -0,0 +1,8 @@ |
|||
import foo from './foo.js'; |
|||
|
|||
function x () { |
|||
var answer = foo(); |
|||
return { answer }; |
|||
} |
|||
|
|||
assert.equal( x().answer, 42 ); |
Loading…
Reference in new issue