From aa54b2ced8ee1fb323999a5d9f5ac64b95ebc11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Segersv=C3=A4rd?= Date: Mon, 17 Aug 2015 16:23:27 +0200 Subject: [PATCH] Add `--strict/--no-strict` CLI option. --- bin/help.md | 2 +- bin/rollup | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/help.md b/bin/help.md index 7b125e6..9b24a92 100644 --- a/bin/help.md +++ b/bin/help.md @@ -16,7 +16,7 @@ Basic options: -n, --name Name for UMD export -u, --id ID for AMD module (default is anonymous) -m, --sourcemap Generate sourcemap (`-m inline` for inline map) - +--no-strict Don't emit a `"use strict";` in the generated modules. Examples: diff --git a/bin/rollup b/bin/rollup index 1c8faf1..fc9dab9 100755 --- a/bin/rollup +++ b/bin/rollup @@ -5,6 +5,10 @@ var minimist = require( 'minimist' ), command = minimist( process.argv.slice( 2 ), { alias: { + // Aliases + strict: 'useStrict', + + // Short options e: 'external', f: 'format', g: 'globals',