mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
10 years ago
5 changed files with 31 additions and 5 deletions
@ -0,0 +1,13 @@ |
|||
module.exports = { |
|||
description: 'deconflicts external imports', |
|||
context: { |
|||
require: function ( id ) { |
|||
return function () { |
|||
return id; |
|||
}; |
|||
} |
|||
}, |
|||
options: { |
|||
external: [ 'foo', 'bar' ] |
|||
} |
|||
}; |
@ -0,0 +1,5 @@ |
|||
import foo from 'foo'; |
|||
|
|||
export default function () { |
|||
assert.equal( foo(), 'foo' ); |
|||
} |
@ -0,0 +1,5 @@ |
|||
import foo from 'bar'; |
|||
|
|||
export default function () { |
|||
assert.equal( foo(), 'bar' ); |
|||
} |
@ -0,0 +1,5 @@ |
|||
import a from './a'; |
|||
import b from './b'; |
|||
|
|||
a(); |
|||
b(); |
Loading…
Reference in new issue