mirror of https://github.com/lukechilds/rollup.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
373 B
22 lines
373 B
const assert = require( 'assert' );
|
|
|
|
module.exports = {
|
|
description: 're-exports * from external module (#791)',
|
|
options: {
|
|
external: [ 'external' ]
|
|
},
|
|
context: {
|
|
require ( id ) {
|
|
if ( id === 'external' ) {
|
|
return {
|
|
foo: 1,
|
|
bar: 2
|
|
};
|
|
}
|
|
}
|
|
},
|
|
exports: exports => {
|
|
assert.equal( exports.foo, 1 );
|
|
assert.equal( exports.bar, 2 );
|
|
}
|
|
};
|
|
|