mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
3 changed files with 15 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||
module.exports = { |
|||
solo: true, |
|||
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 () { |
|||
const answer = foo(); |
|||
return { answer }; |
|||
} |
|||
|
|||
assert.equal( x().answer, 42 ); |
Loading…
Reference in new issue