mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
6 changed files with 27 additions and 8 deletions
@ -0,0 +1,12 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'does not export aliased binding under original name (#438)', |
|||
exports: function ( exports ) { |
|||
assert.equal( exports.number, 0 ); |
|||
assert.equal( exports.incr(), 1 ); |
|||
assert.equal( exports.number, 1 ); |
|||
|
|||
assert.ok( !( 'count' in exports ) ); |
|||
} |
|||
}; |
@ -0,0 +1,5 @@ |
|||
export var count = 0; |
|||
|
|||
export function incr () { |
|||
return ++count; |
|||
} |
@ -0,0 +1 @@ |
|||
export { count as number, incr } from './foo.js'; |
Loading…
Reference in new issue