Browse Source

Merge pull request #85 from Victorystick/cli-use-strict

Add `--strict/--no-strict` CLI option.
contingency-plan
Rich Harris 9 years ago
parent
commit
ca2949bdc4
  1. 2
      bin/help.md
  2. 4
      bin/rollup

2
bin/help.md

@ -16,7 +16,7 @@ Basic options:
-n, --name Name for UMD export -n, --name Name for UMD export
-u, --id ID for AMD module (default is anonymous) -u, --id ID for AMD module (default is anonymous)
-m, --sourcemap Generate sourcemap (`-m inline` for inline map) -m, --sourcemap Generate sourcemap (`-m inline` for inline map)
--no-strict Don't emit a `"use strict";` in the generated modules.
Examples: Examples:

4
bin/rollup

@ -5,6 +5,10 @@ var minimist = require( 'minimist' ),
command = minimist( process.argv.slice( 2 ), { command = minimist( process.argv.slice( 2 ), {
alias: { alias: {
// Aliases
strict: 'useStrict',
// Short options
e: 'external', e: 'external',
f: 'format', f: 'format',
g: 'globals', g: 'globals',

Loading…
Cancel
Save