mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
3 changed files with 19 additions and 7 deletions
@ -0,0 +1,8 @@ |
|||||
|
const assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'exports are kept up-to-date', |
||||
|
exports: exports => { |
||||
|
assert.equal( exports.b, 42 ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,9 @@ |
|||||
|
var a = { prop: 42 }; |
||||
|
var b = a.prop; |
||||
|
|
||||
|
function set ( new_a, new_b ) { |
||||
|
a = new_a; |
||||
|
b = new_b; |
||||
|
} |
||||
|
|
||||
|
export { a, b, set }; |
Loading…
Reference in new issue