mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
5 changed files with 17 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'exports flag is passed through to bundle options', |
|||
options: { |
|||
exports: 'named' |
|||
}, |
|||
exports: function ( exports ) { |
|||
assert.equal( exports.y, 42 ); |
|||
assert.ok( !( 'x' in exports ) ); |
|||
} |
|||
}; |
@ -0,0 +1 @@ |
|||
export var x = 42; |
@ -0,0 +1 @@ |
|||
export { x as y } from './foo'; |
Loading…
Reference in new issue