mirror of https://github.com/status-im/metro.git
253544cb45
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 |
||
---|---|---|
.. | ||
__mocks__ | ||
example_project | ||
src | ||
.npmignore | ||
index.js |