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
393 B
18 lines
393 B
10 years ago
|
var assert = require( 'assert' );
|
||
|
|
||
10 years ago
|
module.exports = {
|
||
|
description: 'uses a custom path resolver (synchronous)',
|
||
|
options: {
|
||
|
resolvePath: function ( importee, importer ) {
|
||
|
if ( importee === 'foo' ) {
|
||
|
return require( 'path' ).resolve( __dirname, 'bar.js' );
|
||
|
}
|
||
|
|
||
|
return false;
|
||
|
}
|
||
|
},
|
||
10 years ago
|
exports: function ( exports ) {
|
||
10 years ago
|
assert.strictEqual( exports.path, require( 'path' ) );
|
||
|
}
|
||
10 years ago
|
};
|