react-native/packager/react-packager
yiminghe 4978855d72 support es6.constants by default. Fixes #2932
Summary: In javascriptcore(ios9), this code will run as expected(output 0 1):

```js
for(let i=0; i<2; i++) {
  const data = i;
  console.log(data);
}
```

But when debug in chrome, the above code will fail without `use strict` prologue (if you add prologue, rn will fail with red screen `Const declarations are not supported in strict mode`): https://code.google.com/p/v8/issues/detail?id=4432.

So it's better to transpile contant by default.

Closes https://github.com/facebook/react-native/pull/2955

Reviewed By: @​svcscm

Differential Revision: D2483398

Pulled By: @vjeux
2015-09-26 15:50:24 -07:00
..
__mocks__ [react-packager] Expose a socket interface 2015-08-25 09:37:08 -08:00
src Fix haste resolution (and better warnings) 2015-09-25 20:35:45 -07:00
.babelrc support es6.constants by default. Fixes #2932 2015-09-26 15:50:24 -07:00
.npmignore [react-packager][streamline oss] Move open sourced JS source to react-native-github 2015-02-19 21:25:11 -08:00
index.js [react-packager] Cleanup socket interface code 2015-08-25 17:36:08 -08:00