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.
18 lines
417 B
18 lines
417 B
var assert = require( 'assert' );
|
|
var path = require( 'path' );
|
|
|
|
module.exports = {
|
|
description: 'includes a relative external module only once (nested version)',
|
|
options: {
|
|
external: path.join( __dirname, './first/foo.js' )
|
|
},
|
|
context: {
|
|
require: function ( required ) {
|
|
assert.equal( required, './first/foo.js' );
|
|
return 1;
|
|
}
|
|
},
|
|
exports: function ( exports ) {
|
|
assert.equal( exports, 3 );
|
|
}
|
|
};
|
|
|