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.

24 lines
436 B

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 );
}
};