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.
15 lines
397 B
15 lines
397 B
var path = require( 'path' );
|
|
var assert = require( 'assert' );
|
|
|
|
var pathRelativeToCwd = path.relative( process.cwd(), path.resolve( __dirname, '_actual/bundle.js' ) );
|
|
|
|
module.exports = {
|
|
description: 'source paths are relative (#344)',
|
|
options: {
|
|
moduleName: 'myModule',
|
|
dest: pathRelativeToCwd
|
|
},
|
|
test: function ( code, map ) {
|
|
assert.deepEqual( map.sources, [ '../main.js' ]);
|
|
}
|
|
};
|
|
|