mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
5 changed files with 29 additions and 1 deletions
@ -0,0 +1,11 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'allows external module to be configured (b)', |
||||
|
options: { |
||||
|
external: [ 'path' ] |
||||
|
}, |
||||
|
exports: function () { |
||||
|
assert.equal( require( 'path' ).resolve.configured, 'yes' ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
import { resolve } from 'path'; |
||||
|
|
||||
|
resolve.configured = 'yes'; |
@ -0,0 +1,11 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'allows external module to be configured', |
||||
|
options: { |
||||
|
external: [ 'path' ] |
||||
|
}, |
||||
|
exports: function () { |
||||
|
assert.equal( require( 'path' ).resolve.configured, 'yes' ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
import * as path from 'path'; |
||||
|
|
||||
|
path.resolve.configured = 'yes'; |
Loading…
Reference in new issue