mirror of https://github.com/lukechilds/rollup.git
3 changed files with 8 additions and 5 deletions
@ -0,0 +1,3 @@ |
|||
export default function bar () { |
|||
return 'main-bar'; |
|||
} |
@ -1,7 +1,10 @@ |
|||
import baz from './baz.js'; |
|||
|
|||
function bar () { |
|||
return 'foo-bar'; |
|||
} |
|||
|
|||
export var foo = { |
|||
bar |
|||
bar, |
|||
baz |
|||
}; |
|||
|
@ -1,8 +1,5 @@ |
|||
import bar from './baz.js'; |
|||
import { foo } from './foo'; |
|||
|
|||
function bar () { |
|||
return 'main-bar'; |
|||
} |
|||
|
|||
assert.equal( bar(), 'main-bar' ); |
|||
assert.equal( foo.bar(), 'foo-bar' ); |
|||
|
Loading…
Reference in new issue