mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
5 changed files with 34 additions and 4 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'default export of anonymous function' |
|||
}; |
@ -0,0 +1,7 @@ |
|||
function foo() { |
|||
return 42; |
|||
} |
|||
|
|||
export default function () { |
|||
return foo(); |
|||
} |
@ -0,0 +1,3 @@ |
|||
import foo from './foo'; |
|||
|
|||
assert.equal( foo(), 42 ); |
Loading…
Reference in new issue