mirror of https://github.com/lukechilds/rollup.git
Rich Harris
10 years ago
6 changed files with 22 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'exports default-as-named from sibling module', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.foo, 'FOO' ); |
||||
|
assert.equal( exports.namespace.baz, 'BAZ' ); |
||||
|
}, |
||||
|
//solo: true
|
||||
|
}; |
@ -0,0 +1 @@ |
|||||
|
export { default as baz } from './baz'; |
@ -0,0 +1 @@ |
|||||
|
export default 'BAZ'; |
@ -0,0 +1 @@ |
|||||
|
export default 'FOO'; |
@ -0,0 +1,8 @@ |
|||||
|
import { baz } from './bar'; |
||||
|
import * as namespace from './namespace'; |
||||
|
|
||||
|
assert.equal( baz, 'BAZ' ); |
||||
|
assert.equal( namespace.baz, 'BAZ' ); |
||||
|
|
||||
|
export { default as foo } from './foo'; |
||||
|
export { namespace }; |
@ -0,0 +1 @@ |
|||||
|
export { default as baz } from './baz'; |
Loading…
Reference in new issue