mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,13 @@ |
|||||
|
const assert = require( 'assert' ); |
||||
|
|
||||
|
const foo = {}; |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'tracks mutations of aliased objects', |
||||
|
context: { |
||||
|
foo |
||||
|
}, |
||||
|
exports () { |
||||
|
assert.equal( foo.x, 42 ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,2 @@ |
|||||
|
var _foo = foo; |
||||
|
_foo.x = 42; |
Loading…
Reference in new issue