Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working? Still strict? #5

Open
pmorch opened this issue Jul 14, 2017 · 0 comments
Open

Not working? Still strict? #5

pmorch opened this issue Jul 14, 2017 · 0 comments

Comments

@pmorch
Copy link

pmorch commented Jul 14, 2017

What am I doing wrong? It looks like it is still strict to me...

> ls -a
.  ..  loose.js

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

> yarn add babel-cli babel-preset-es2015-without-strict
(installs packages)

> echo '{
>   "presets": ["es2015-without-strict"]
> }' > .babelrc

> cat .babelrc 
{
  "presets": ["es2015-without-strict"]
}

> ./node_modules/.bin/babel loose.js --presets es2015-without-strict 
SyntaxError: loose.js: Deleting local variable in strict mode (2:0)
  1 | var foo = 'bar';
> 2 | delete foo;
    | ^
  3 | 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant