mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
8 changed files with 40 additions and 4 deletions
@ -0,0 +1,10 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 're-exports are kept up-to-date', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.count, 0 ); |
||||
|
exports.incr(); |
||||
|
assert.equal( exports.count, 1 ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,10 @@ |
|||||
|
export var count = 0; |
||||
|
|
||||
|
export function conflict () { |
||||
|
var foo = 0, |
||||
|
count = 42; |
||||
|
} |
||||
|
|
||||
|
export function incr () { |
||||
|
count += 1; |
||||
|
} |
@ -0,0 +1 @@ |
|||||
|
export {count, incr, conflict} from './count'; |
@ -0,0 +1,10 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 're-exports are kept up-to-date', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports.count, 0 ); |
||||
|
exports.incr(); |
||||
|
assert.equal( exports.count, 1 ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,5 @@ |
|||||
|
export var count = 0; |
||||
|
|
||||
|
export function incr () { |
||||
|
count += 1; |
||||
|
} |
@ -0,0 +1 @@ |
|||||
|
export {count, incr} from './count'; |
Loading…
Reference in new issue