From cc8141cc55bf6675b0a43f68585a5618d1a503ca Mon Sep 17 00:00:00 2001 From: Oleg SKLYANCHUK Date: Thu, 31 Mar 2016 18:33:57 +0200 Subject: [PATCH] Add useStrict option to ALLOWED_KEYS. --- src/rollup.js | 3 ++- test/test.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rollup.js b/src/rollup.js index 1b171bd..c32e2cf 100644 --- a/src/rollup.js +++ b/src/rollup.js @@ -24,7 +24,8 @@ const ALLOWED_KEYS = [ 'onwarn', 'outro', 'plugins', - 'sourceMap' + 'sourceMap', + 'useStrict' ]; export function rollup ( options ) { diff --git a/test/test.js b/test/test.js index e4da991..39a81fc 100644 --- a/test/test.js +++ b/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( '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 ); }); }); });