mirror of https://github.com/lukechilds/rollup.git
Oskar Segersvärd
9 years ago
4 changed files with 21 additions and 3 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'does namespace optimization when possible, but not for dynamic lookups' |
|||
}; |
@ -0,0 +1,2 @@ |
|||
export var bar = 'bar'; |
|||
export var baz = 'baz'; |
@ -0,0 +1,8 @@ |
|||
import * as foo from './foo'; |
|||
|
|||
var bar = 'baz'; |
|||
|
|||
assert.equal( foo.bar, 'bar' ); |
|||
assert.equal( foo.baz, 'baz' ); |
|||
|
|||
assert.equal( foo[ bar ], 'baz' ); |
Loading…
Reference in new issue