Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

add babel-preset-es2015 #3

Closed
wants to merge 1 commit into from
Closed

Conversation

gimdongwoo
Copy link

@gimdongwoo gimdongwoo commented Jun 16, 2017

#2

src/controllers/index.js

const a = 'test';

var doClick = (e) => {
  alert($.label.text + a);
}

$.index.open();

This is transcoded result.

app/controllers/index.js

'use strict';

var a = 'test';

var doClick = function doClick(e) {
  alert($.label.text + a);
};

$.index.open();

I think ES2015 (ex: arrow functions, const, let) are already used as standard, so we need es2015 preset.

Thank you.

@vladm3
Copy link
Owner

vladm3 commented Jul 1, 2017

@gimdongwoo Please see my comment under the issue #2

@vladm3 vladm3 closed this Jul 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants