mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
4 changed files with 21 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||||
|
module.exports = { |
||||
|
description: 'handles call of aliased external function (#957)', |
||||
|
warnings () {}, |
||||
|
context: { |
||||
|
require ( id ) { |
||||
|
if ( id === 'foo' ) { |
||||
|
return () => 42; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
}; |
@ -0,0 +1,2 @@ |
|||||
|
import foo from 'foo'; |
||||
|
export default foo; |
@ -0,0 +1,4 @@ |
|||||
|
import foo_ from './foo.js'; |
||||
|
|
||||
|
var foo = foo_; |
||||
|
assert.equal( foo(), 42 ); |
Loading…
Reference in new issue