Browse Source

test that file property is being added to sourcemap (#986)

gh-1187
Rich-Harris 8 years ago
parent
commit
8290e11c1a
  1. 6
      test/cli/sourcemap-file/_config.js
  2. 2
      test/cli/sourcemap-file/_expected/bundle.js
  3. 1
      test/cli/sourcemap-file/_expected/bundle.js.map
  4. 1
      test/cli/sourcemap-file/main.js

6
test/cli/sourcemap-file/_config.js

@ -0,0 +1,6 @@
const assert = require( 'assert' );
module.exports = {
description: 'populates file property of sourcemap (#986)',
command: 'rollup -i main.js -o _actual/bundle.js -m'
};

2
test/cli/sourcemap-file/_expected/bundle.js

@ -0,0 +1,2 @@
console.log( 42 );
//# sourceMappingURL=bundle.js.map

1
test/cli/sourcemap-file/_expected/bundle.js.map

@ -0,0 +1 @@
{"version":3,"file":"bundle.js","sources":["../main.js"],"sourcesContent":["console.log( 42 );\n"],"names":[],"mappings":"AAAA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC"}

1
test/cli/sourcemap-file/main.js

@ -0,0 +1 @@
console.log( 42 );
Loading…
Cancel
Save