mirror of https://github.com/lukechilds/rollup.git
Browse Source
With the current implementation of rollup, this test fails. To make it pass, you can replace `import obj from './obj;` in lib.js with `var obj = {};`, suggesting that it's the import itself that somehow confuses rollup.contingency-plan
Brian Donovan
10 years ago
5 changed files with 13 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'top level function calls are preserved' |
|||
}; |
@ -0,0 +1,5 @@ |
|||
import obj from './obj'; |
|||
|
|||
obj.value = 'augmented'; |
|||
|
|||
export default obj; |
@ -0,0 +1,3 @@ |
|||
import lib from './lib'; |
|||
|
|||
assert.strictEqual(lib.value, 'augmented'); |
@ -0,0 +1 @@ |
|||
export default { value: 'original' }; |
@ -1,3 +1,3 @@ |
|||
module.exports = { |
|||
description: 'top level side effects are preserved' |
|||
description: 'top level side effects on imports are preserved' |
|||
}; |
|||
|
Loading…
Reference in new issue