babel-plugin-transform-remove-strict-mode icon indicating copy to clipboard operation
babel-plugin-transform-remove-strict-mode copied to clipboard

Can't get it to work...

Open pmorch opened this issue 7 years ago • 2 comments

> ls -a
.  ..  loose.js

> cat loose.js 
var foo = 'bar';
delete foo;

> yarn add babel-cli babel-plugin-transform-remove-strict-mode
(packages get installed)

> babel --plugins transform-remove-strict-mode loose.js 
SyntaxError: loose.js: Deleting local variable in strict mode (2:0)
  1 | var foo = 'bar';
> 2 | delete foo;
    | ^
  3 | 

> egrep '^(babel-core|babel-plugin-transform-remove-strict-mode)' yarn.lock 
babel-core@^6.24.1:
babel-plugin-transform-remove-strict-mode@^0.0.2:

What am I missing? Isn't it still in strict mode?

pmorch avatar Jul 14 '17 21:07 pmorch

Does not work. Maybe it is for an old version of Babel...

eakarpov avatar Sep 05 '19 15:09 eakarpov

Does not work. Maybe it is for an old version of Babel...

try this.. “npm install [email protected]

wanwanqichao avatar Sep 24 '20 13:09 wanwanqichao