mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
7 changed files with 21 additions and 1 deletions
@ -0,0 +1,5 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'allows export { x as y }' |
||||
|
}; |
@ -0,0 +1,2 @@ |
|||||
|
var x = 42; |
||||
|
export { x as y }; |
@ -0,0 +1,2 @@ |
|||||
|
import { y } from './foo'; |
||||
|
assert.equal( y, 42 ); |
@ -0,0 +1,9 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'allows export { x as y } from ...', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.y, 42 ); |
||||
|
assert.ok( !( 'x' in exports ) ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1 @@ |
|||||
|
export var x = 42; |
@ -0,0 +1 @@ |
|||||
|
export { x as y } from './foo'; |
Loading…
Reference in new issue