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.
19 lines
378 B
19 lines
378 B
9 years ago
|
var path = require( 'path' );
|
||
|
var assert = require( 'assert' );
|
||
|
|
||
|
module.exports = {
|
||
|
description: 'external paths from custom resolver remain external (#633)',
|
||
|
options: {
|
||
|
external: [ 'path' ],
|
||
|
plugins: [{
|
||
|
resolveId: ( id ) => {
|
||
|
if ( id == './dep.js' ) return 'path';
|
||
|
return id;
|
||
|
}
|
||
|
}]
|
||
|
},
|
||
|
exports: exports => {
|
||
|
assert.equal( exports, path.resolve );
|
||
|
}
|
||
|
};
|