mirror of https://github.com/lukechilds/rollup.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
436 B
25 lines
436 B
9 years ago
|
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 );
|
||
|
}
|
||
|
};
|