metro/react-packager
Amjad Masad 253544cb45 [react-packager] Make it safe to include files without a newline at the end
Summary:
@public
Fixes #1431
Fixes #1005
Files with no newlines and a comment at the end of the file would've caused a syntax error in the bundle:

```js
__d('module', function() {
hi();
// wow })
```

This fixes the issue by inserting a new lines before `})`.

Test Plan:
* ./runJestTests.sh
* ./runJestTests.sh PackagerIntegration
* open app to the playground app
* add an error
* observe that the redbox has the correct lines
2015-06-16 12:02:49 -08:00
..
__mocks__ [react-packager] Switch from Q to Bluebird as promises library 2015-03-31 21:24:13 -08:00
example_project [ReactNative] Expanded license on js packager files 2015-03-23 11:28:51 -08:00
src [react-packager] Make it safe to include files without a newline at the end 2015-06-16 12:02:49 -08: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] Introduce buildPackage API 2015-05-22 17:28:27 -08:00