Browse Source

Merge pull request #718 from rollup/ghi-717

Allow `sourceMapFile` as an option.
ghi-672
Rich Harris 9 years ago
committed by GitHub
parent
commit
d9852e9d64
  1. 1
      src/rollup.js
  2. 2
      test/test.js

1
src/rollup.js

@ -28,6 +28,7 @@ const ALLOWED_KEYS = [
'plugins',
'preferConst',
'sourceMap',
'sourceMapFile',
'targets',
'treeshake',
'useStrict'

2
test/test.js

@ -76,7 +76,7 @@ describe( 'rollup', function () {
return rollup.rollup({ entry: 'x', plUgins: [] }).then( function () {
throw new Error( 'Missing expected error' );
}, function ( err ) {
assert.equal( err.message, 'Unexpected key \'plUgins\' found, expected one of: acorn, banner, cache, dest, entry, exports, external, footer, format, globals, indent, intro, moduleId, moduleName, noConflict, onwarn, outro, plugins, preferConst, sourceMap, targets, treeshake, useStrict' );
assert.equal( err.message, 'Unexpected key \'plUgins\' found, expected one of: acorn, banner, cache, dest, entry, exports, external, footer, format, globals, indent, intro, moduleId, moduleName, noConflict, onwarn, outro, plugins, preferConst, sourceMap, sourceMapFile, targets, treeshake, useStrict' );
});
});
});

Loading…
Cancel
Save