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