Browse Source

FIX: --no-strict command line option not map bug

semi-dynamic-namespace-imports
1111hui 9 years ago
parent
commit
28491ea540
  1. 1
      bin/src/runRollup.js
  2. 4
      test/cli/no-strict/_config.js
  3. 4
      test/cli/no-strict/_expected.js
  4. 1
      test/cli/no-strict/main.js

1
bin/src/runRollup.js

@ -96,6 +96,7 @@ export default function runRollup ( command ) {
}
const equivalents = {
useStrict: 'useStrict',
banner: 'banner',
footer: 'footer',
format: 'format',

4
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'
};

4
test/cli/no-strict/_expected.js

@ -0,0 +1,4 @@
(function () {
console.log( 42 );
}());

1
test/cli/no-strict/main.js

@ -0,0 +1 @@
console.log( 42 );
Loading…
Cancel
Save