mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
7 changed files with 49 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'ignores conflict between local definitions and export from declaration', |
|||
exports: function ( exports ) { |
|||
assert.equal( exports.foo, 'a-bar' ); |
|||
assert.equal( exports.bar, 'a-foo' ); |
|||
assert.equal( exports.baz, 'a-baz' ); |
|||
} |
|||
}; |
|||
|
|||
// https://github.com/rollup/rollup/issues/16
|
@ -0,0 +1,3 @@ |
|||
export var foo = 'a-foo'; |
|||
export var bar = 'a-bar'; |
|||
export var baz = 'a-baz'; |
@ -0,0 +1,9 @@ |
|||
var foo = 'local-foo'; |
|||
var baz = 'local-baz'; |
|||
|
|||
export { foo as bar } from './a'; |
|||
export { bar as foo } from './a'; |
|||
export { baz } from './a'; |
|||
|
|||
assert.equal( foo, 'b-foo' ); |
|||
assert.equal( baz, 'b-baz' ); |
@ -0,0 +1,12 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'ignores conflict between import declaration and export from declaration', |
|||
exports: function ( exports ) { |
|||
assert.equal( exports.foo, 'a-bar' ); |
|||
assert.equal( exports.bar, 'a-foo' ); |
|||
assert.equal( exports.baz, 'a-baz' ); |
|||
} |
|||
}; |
|||
|
|||
// https://github.com/rollup/rollup/issues/16
|
@ -0,0 +1,3 @@ |
|||
export var foo = 'a-foo'; |
|||
export var bar = 'a-bar'; |
|||
export var baz = 'a-baz'; |
@ -0,0 +1,2 @@ |
|||
export var foo = 'b-foo'; |
|||
export var baz = 'b-baz'; |
@ -0,0 +1,8 @@ |
|||
import { foo, baz } from './b'; |
|||
|
|||
export { foo as bar } from './a'; |
|||
export { bar as foo } from './a'; |
|||
export { baz } from './a'; |
|||
|
|||
assert.equal( foo, 'b-foo' ); |
|||
assert.equal( baz, 'b-baz' ); |
Loading…
Reference in new issue