diff --git a/bin/src/runRollup.js b/bin/src/runRollup.js index 923fb1e..c7e09d5 100644 --- a/bin/src/runRollup.js +++ b/bin/src/runRollup.js @@ -96,6 +96,7 @@ export default function runRollup ( command ) { } const equivalents = { + useStrict: 'useStrict', banner: 'banner', footer: 'footer', format: 'format', diff --git a/test/cli/no-strict/_config.js b/test/cli/no-strict/_config.js new file mode 100644 index 0000000..efc646d --- /dev/null +++ b/test/cli/no-strict/_config.js @@ -0,0 +1,4 @@ +module.exports = { + description: 'use no strict option', + command: 'rollup -i main.js -f iife --no-strict' +}; diff --git a/test/cli/no-strict/_expected.js b/test/cli/no-strict/_expected.js new file mode 100644 index 0000000..d7c1012 --- /dev/null +++ b/test/cli/no-strict/_expected.js @@ -0,0 +1,4 @@ +(function () { + console.log( 42 ); + +}()); diff --git a/test/cli/no-strict/main.js b/test/cli/no-strict/main.js new file mode 100644 index 0000000..5c72ff3 --- /dev/null +++ b/test/cli/no-strict/main.js @@ -0,0 +1 @@ +console.log( 42 );