Rafael Oleza
9294f5a46a
Multiple requests to the Delta Bundler when there is an error should produce an Error
...
Reviewed By: jeanlauliac
Differential Revision: D5814215
fbshipit-source-id: 9a72057078819d07ddbd5d4f949d7bdf13aff29e
2017-09-14 08:25:36 -07:00
David Aurelio
3401cfe768
disable all dev settings for base transform
...
Reviewed By: fkgozali
Differential Revision: D5824578
fbshipit-source-id: 7503700b82dc2b4de4c2d941829ba837ddcd5f3c
2017-09-13 16:53:45 -07:00
Rafael Oleza
0a1e79a820
Replace the ETag header by the Last-Modified to improve performance
...
Reviewed By: mjesun
Differential Revision: D5823545
fbshipit-source-id: 57eac5548e626eeed05f9b454e3f54b114193eb0
2017-09-13 13:08:05 -07:00
Rafael Oleza
b64a07e38b
Make DeltaBundler HMR handle errors correctly
...
Reviewed By: jeanlauliac
Differential Revision: D5814107
fbshipit-source-id: 2bcc52901eff5f2330453c7dc948a0b4ac0332db
2017-09-13 10:12:55 -07:00
Christoph Nakazawa
5422f802f5
Use hasteImpl in the Buck worker
...
Reviewed By: davidaurelio
Differential Revision: D5803422
fbshipit-source-id: de3aa40ab8ea9ec54e61173b3d6556351394089f
2017-09-13 00:09:09 -07:00
Kevin Gozali
8654b558ca
fix output path for the UNBUNDLE magic file
...
Summary: Fixed the UNBUNDLE magic file location to match what JniJSModulesUnbundle.cpp expects.
Reviewed By: sahrens
Differential Revision: D5821637
fbshipit-source-id: 4342e4bb4d139b4eba77dd92a53b1683041fc7e9
2017-09-12 22:43:13 -07:00
Rafael Oleza
449e943d91
Add 'bundler' column to metro bundler logs
...
Reviewed By: davidaurelio
Differential Revision: D5809350
fbshipit-source-id: 7e1b9dcda26f3c199ff1723e21c670659d9cf747
2017-09-12 09:11:14 -07:00
Miguel Jimenez Esun
090df5c104
Make cache method public
...
Reviewed By: jeanlauliac
Differential Revision: D5804391
fbshipit-source-id: 8da732a440111ca5d89d51fa9e4c2727d386bbff
2017-09-12 08:11:29 -07:00
Rafael Oleza
5fa193bdee
Move createModuleIdFactory() to a separate module
...
Reviewed By: jeanlauliac
Differential Revision: D5813714
fbshipit-source-id: 17ae2cf1751d30f6f18bb896576747871b8a0b68
2017-09-12 08:11:29 -07:00
Rafael Oleza
bd51bc3c2f
Use getModuleForPath() method from Resolver instead of Bundler
...
Reviewed By: davidaurelio
Differential Revision: D5813534
fbshipit-source-id: dbd005c2f9b478be58f33bd30df16e94159509da
2017-09-12 07:11:30 -07:00
Christoph Nakazawa
d9ff4fa1dc
Apply @format to root level files
...
Reviewed By: davidaurelio
Differential Revision: D5803464
fbshipit-source-id: e250a3ada33790b989f1e70990438c300bfb6d52
2017-09-12 01:06:05 -07:00
Rafael Oleza
c51161d209
Fix issue calculating dependencyPairs when adding a new dependency
...
Reviewed By: cpojer
Differential Revision: D5812028
fbshipit-source-id: ced2cb19e87b3622d16f4c59d58d6711ce5161df
2017-09-12 01:06:05 -07:00
Christoph Nakazawa
b3e817285b
Remove HasteMap
...
Reviewed By: davidaurelio
Differential Revision: D5803275
fbshipit-source-id: 2e64733d8ef400a61d116b21cd53185934dd3d57
2017-09-11 23:54:09 -07:00
Christoph Nakazawa
61a0116dd4
Prevent logspew in symbolication worker-test
...
Reviewed By: mjesun
Differential Revision: D5803050
fbshipit-source-id: b585d073191ae521e8bc8cabb90a15d2a176d6da
2017-09-11 19:44:11 -07:00
Christoph Nakazawa
92fa17f70e
Fix DependencyGraph-test log-spew
...
Reviewed By: mjesun
Differential Revision: D5803016
fbshipit-source-id: fc94590331fb77796cb5d2bbc96f963b7b5f8c7c
2017-09-11 19:44:11 -07:00
Christoph Nakazawa
86a943bbcd
Branding: "packager" -> "Metro Bundler"
...
Summary:
This diff renames all the stragglers in comments and strings from variations of "packager" to "Metro Bundler". I did one of three:
* Rename "packager" to "Metro Bundler"
* Rename "react-native-packager" to "Metro Bundler"
* Remove "packager" when code inside of Metro implies that it's about Metro
I also removed `Glossary.md` because it is unmaintained and very old. mjesun is currently starting to write documentation for Metro which will supersede whatever was there before.
Reviewed By: mjesun
Differential Revision: D5802993
fbshipit-source-id: ba99cb5ed04d84b0f7b7a8a0bf28ed99280a940a
2017-09-11 19:44:11 -07:00
Rafael Oleza
8e2252d35d
Implement end() method in DeltaBundler
...
Reviewed By: jeanlauliac
Differential Revision: D5803466
fbshipit-source-id: 78a29cd943774506694513987d97d9f37be04485
2017-09-11 08:27:56 -07:00
Rafael Oleza
197d885ec1
Add X-Metro-Files-Changed-Count HTTP header to the response when using Delta Bundler
...
Reviewed By: mjesun
Differential Revision: D5793977
fbshipit-source-id: 9e0783356ca7574077d4eb06489e9837f033d986
2017-09-11 08:27:56 -07:00
Rafael Oleza
bf64ba58d3
Integrate the Source Map generator from Delta Bundler into the metro server
...
Reviewed By: mjesun
Differential Revision: D5793423
fbshipit-source-id: a26b6d67405d6ec0d59479cfe5091159a29018d1
2017-09-11 08:27:56 -07:00
Rafael Oleza
e57e0002d1
Add Source Maps support to Delta Bundler
...
Reviewed By: jeanlauliac
Differential Revision: D5793499
fbshipit-source-id: 67e49ed5f5bc9ccae2fb4982cd506fc03259589a
2017-09-11 08:27:56 -07:00
Rafael Oleza
dcf30322a5
Do not minify a bundle when calling wrapModule()
...
Reviewed By: jeanlauliac
Differential Revision: D5791079
fbshipit-source-id: 942d2963e17153508b4a7c5bd48e11b7cb3fdcd4
2017-09-11 08:27:56 -07:00
Rafael Oleza
2593ea2ad4
Make the sourcemaps generation module independent of ModuleTransport
...
Reviewed By: jeanlauliac
Differential Revision: D5789998
fbshipit-source-id: a460ccb0baa62d0edb4e0da2b6f4d4abaa7fe222
2017-09-11 08:27:56 -07:00
Rafael Oleza
5ee6de217d
Disable using babel-generated sourcemaps from the metro bundler server
...
Reviewed By: jeanlauliac
Differential Revision: D5785354
fbshipit-source-id: be1a5c114b12af356804ff3b4ed6c4263d66fa0c
2017-09-11 08:27:56 -07:00
Jean Lauliac
36b2f8d67f
RN packager: wrap-worker-fn.js: syncify
...
Reviewed By: davidaurelio
Differential Revision: D5803796
fbshipit-source-id: d6b7d169a2c17864e8ce68d82df8e898d966e404
2017-09-11 07:41:44 -07:00
Jean Lauliac
69eb3430b6
RN packager: transform-module.js: syncify everything
...
Reviewed By: davidaurelio
Differential Revision: D5803768
fbshipit-source-id: 06c28e6c30fce347780d953312646a449d0026d9
2017-09-11 07:41:44 -07:00
Jean Lauliac
7ccbcc5ebc
metro-bundler: fix Flow errors in OSS
...
Reviewed By: cpojer
Differential Revision: D5775151
fbshipit-source-id: 730ab160fdf5ea35f8047eb55a7e2844ba7a7c14
2017-09-08 06:39:36 -07:00
Rafael Oleza
286c5ccdd9
Bump metro-bundler to 0.16.0
...
Reviewed By: davidaurelio
Differential Revision: D5793558
fbshipit-source-id: c5d7f3029b889987613034150ba13a72b4850421
2017-09-08 06:23:47 -07:00
Jean Lauliac
890de8436f
xplat/js: switch to new oncall javascript_foundation
...
Reviewed By: cpojer
Differential Revision: D5774897
fbshipit-source-id: 6b3246aeda9fe3bee89065ed2ac244282e496373
2017-09-08 03:39:34 -07:00
Rafael Oleza
177c4fb1ab
Do not bundle deleted modules in HMR
...
Reviewed By: mjesun
Differential Revision: D5777831
fbshipit-source-id: dd3551194eca99097cea5a1944555cd8adff9f19
2017-09-07 10:21:19 -07:00
Marshall Roch
14428a67e5
@allow-large-files Flow v0.54.0
...
Reviewed By: leebyron
Differential Revision: D5773490
fbshipit-source-id: 2c54bb6326f23edbe9a969f3010f79da8189923e
2017-09-06 03:31:10 -07:00
Jean Lauliac
a94654255b
packager-worker-for-buck: include all entries point for getting extra configuration
...
Reviewed By: davidaurelio
Differential Revision: D5764794
fbshipit-source-id: a9bddd05a66c1d5a45f5dd4d04517dbe86ea5b76
2017-09-05 10:54:17 -07:00
Rafael Oleza
0265758e5e
Create brand-new HMR server using the Delta Bundler
...
Reviewed By: mjesun
Differential Revision: D5765024
fbshipit-source-id: 3f51ab1564a93b8268e51c0a0a97ea3ef5bd6681
2017-09-05 07:21:06 -07:00
Rafael Oleza
387a55de40
Make the DeltaCalculator and the DeltaTransformer emit change events
...
Reviewed By: jeanlauliac
Differential Revision: D5765042
fbshipit-source-id: 5b45cc425b6afb4f8cead80ce967263936baa8c1
2017-09-05 07:21:06 -07:00
Rafael Oleza
8b6d69b645
Return the inverseDependencies from the Delta Bundler to support HMR
...
Reviewed By: jeanlauliac
Differential Revision: D5763905
fbshipit-source-id: 6b95c8dfded5fc30ec2e7a558ab25550d9a1c333
2017-09-05 07:21:06 -07:00
Miguel Jimenez Esun
d4a93eb2fa
Update Jest to v21
...
Reviewed By: cpojer
Differential Revision: D5765333
fbshipit-source-id: 94ea448c4380fdc68f42f84eb3963322ea18ec70
2017-09-05 05:25:02 -07:00
Rafael Oleza
1f90522a13
Upgrade metro-bunder to v0.15.0
...
Summary: Some breaking changes require a new release.
Reviewed By: cpojer
Differential Revision: D5766207
fbshipit-source-id: d0ebc5cb46fbd2ad167c0a3369d0f354346f61b9
2017-09-05 05:25:02 -07:00
Rafael Oleza
e18d4e1b89
Enable delta bundler on metro-bundler behind a cli argument
...
Reviewed By: mjesun
Differential Revision: D5761110
fbshipit-source-id: 83127f63679caffbc4f335f52f6f5eda398e8c05
2017-09-04 13:53:55 -07:00
Rafael Oleza
7b17ca335d
Add DeltaPatcher module to handle Delta bundles
...
Reviewed By: jeanlauliac
Differential Revision: D5761096
fbshipit-source-id: 8c8ef5fb720b08e3f4f097c5a76f793dc4f1c1da
2017-09-04 13:53:55 -07:00
Rafael Oleza
52fcaf4a10
Delta Bundler: Initial implementation of the Delta Bundler
...
Reviewed By: jeanlauliac
Differential Revision: D5760233
fbshipit-source-id: 5f829d48401889b1391719564119951a1cf3c792
2017-09-04 13:53:55 -07:00
Rafael Oleza
8c8cfb364f
Expose some private methods from the Bundler and the DependencyGraph
...
Reviewed By: jeanlauliac
Differential Revision: D5755556
fbshipit-source-id: cff95e3464154883fd872bf8ab916276a1f09027
2017-09-04 13:53:55 -07:00
Rafael Oleza
70a0916dd2
Change signature of Resolver.wrapModule() to not depend on ResolutionResponse
...
Reviewed By: mjesun
Differential Revision: D5757102
fbshipit-source-id: 1cb514612ec431e48d669607c5332f26d19f53a0
2017-09-04 13:53:55 -07:00
Rafael Oleza
ebb14a56c6
Add prependPolyfills option param to getDependencies()
...
Reviewed By: jeanlauliac
Differential Revision: D5755548
fbshipit-source-id: 599d3fb6d9acb34f5970ad83947daeb5f28f86d3
2017-09-04 13:53:55 -07:00
Rafael Oleza
9c251076cf
Fix sourceMap flow annotations by making them nullable
...
Reviewed By: mjesun
Differential Revision: D5755671
fbshipit-source-id: 19be8475b1f1b54bc55b64a1de4b8a446e125c65
2017-09-04 13:53:55 -07:00
Miguel Jimenez Esun
2377f04f4a
Always report filename
...
Reviewed By: cpojer
Differential Revision: D5764824
fbshipit-source-id: cb90e429176764d4a1043fd57bbfee223361a182
2017-09-04 13:53:55 -07:00
Jean Lauliac
6e415bcb2f
metro-bunder: v0.14.0
...
Summary: Some breaking changes require a new release.
Reviewed By: cpojer
Differential Revision: D5763898
fbshipit-source-id: 0580c9b1256c2c019adc5fb2f771c54d7e7a0bf1
2017-09-04 04:42:16 -07:00
Rafael Oleza
717a8c7f61
Improve HMR performance by allowing to specify bundlingOptions to getShallowDependencies() method
...
Reviewed By: jeanlauliac
Differential Revision: D5745205
fbshipit-source-id: a69ac40bb676a809e3786681179e2b4bac392ce6
2017-09-01 08:51:22 -07:00
Jean Lauliac
8907de28ac
metro-bundler: v0.13
...
Reviewed By: cpojer
Differential Revision: D5754623
fbshipit-source-id: b70bfa105e6752db5350b82433bd64e1ca45f33b
2017-09-01 07:36:11 -07:00
Jean Lauliac
1142f05d59
metro-bundler: v0.12
...
Reviewed By: cpojer
Differential Revision: D5745702
fbshipit-source-id: 6dc88811525e1595f58b23b7d0ebd5cc9f309785
2017-08-31 10:52:51 -07:00
Jean Lauliac
1c6a96f2b3
metro-bundler: ModuleGraph/output: @format
...
Reviewed By: cpojer
Differential Revision: D5745469
fbshipit-source-id: 7aa923736d6eb257f547a6d41b4329ce3406c805
2017-08-31 07:24:33 -07:00
Miguel Jimenez Esun
9254941133
Treat package.json's first
...
Reviewed By: fkgozali
Differential Revision: D5736600
fbshipit-source-id: f2947d4b1fb057ea33dd84e3c8cd878d5bfeda49
2017-08-30 12:08:48 -07:00