Browse Source

Merge pull request #583 from olegskl/add-usestrict-option-to-allowed-keys

Add useStrict option to ALLOWED_KEYS.
gh-669
Rich Harris 9 years ago
parent
commit
8a6b6d1a69
  1. 3
      src/rollup.js
  2. 2
      test/test.js

3
src/rollup.js

@ -24,7 +24,8 @@ const ALLOWED_KEYS = [
'onwarn', 'onwarn',
'outro', 'outro',
'plugins', 'plugins',
'sourceMap' 'sourceMap',
'useStrict'
]; ];
export function rollup ( options ) { export function rollup ( options ) {

2
test/test.js

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

Loading…
Cancel
Save