mirror of https://github.com/lukechilds/rollup.git
Bogdan Chadkin
9 years ago
committed by
GitHub
2 changed files with 25 additions and 1 deletions
@ -0,0 +1,24 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
var modules = { |
|||
'x\\y': 'export default 42;', |
|||
'x/y': 'export default 24;' |
|||
}; |
|||
|
|||
module.exports = { |
|||
description: 'does not mangle entry point', |
|||
options: { |
|||
entry: 'x\\y', |
|||
plugins: [{ |
|||
resolveId: function ( importee ) { |
|||
return importee; |
|||
}, |
|||
load: function ( moduleId ) { |
|||
return modules[ moduleId ]; |
|||
} |
|||
}] |
|||
}, |
|||
exports: function ( exports ) { |
|||
assert.equal( exports, 42 ); |
|||
} |
|||
}; |
Loading…
Reference in new issue