babel-plugin-transform-remove-strict-mode
babel-plugin-transform-remove-strict-mode copied to clipboard
Can't get it to work...
> 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?
Does not work. Maybe it is for an old version of Babel...
Does not work. Maybe it is for an old version of Babel...
try this.. “npm install [email protected]”