mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
2 changed files with 20 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||
|
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 ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,2 @@ |
|||||
|
import { resolve } from './dep.js'; |
||||
|
export default resolve; |
Loading…
Reference in new issue