Browse Source

Merge pull request #380 from rollup/gh-379

Fixes #379
gh-384
Rich Harris 9 years ago
parent
commit
47612d97f2
  1. 23
      src/rollup.js
  2. 2
      test/test.js

23
src/rollup.js

@ -9,24 +9,21 @@ import Bundle from './Bundle.js';
export const VERSION = '<@VERSION@>';
const ALLOWED_KEYS = [
'entry',
'banner',
'dest',
'plugins',
'entry',
'external',
'onwarn',
'indent',
'footer',
'format',
'moduleName',
'sourceMap',
'globals',
'indent',
'intro',
'moduleId',
'moduleName',
'onwarn',
'outro',
'banner',
'footer',
'globals',
'transform',
'load',
'resolveId',
'resolveExternal'
'plugins',
'sourceMap'
];
export function rollup ( options ) {

2
test/test.js

@ -74,7 +74,7 @@ describe( 'rollup', function () {
return rollup.rollup({ entry: 'x', plUgins: [] }).then( function () {
throw new Error( 'Missing expected error' );
}, function ( err ) {
assert.equal( 'Unexpected key \'plUgins\' found, expected one of: entry, dest, plugins, external, onwarn, indent, format, moduleName, sourceMap, intro, outro, banner, footer, globals, transform, load, resolveId, resolveExternal', err.message );
assert.equal( 'Unexpected key \'plUgins\' found, expected one of: banner, dest, entry, external, footer, format, globals, indent, intro, moduleId, moduleName, onwarn, outro, plugins, sourceMap', err.message );
});
});
});

Loading…
Cancel
Save