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
378 B

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 );
}
};