Maël Nison
2af0396ffe
Bumps Jest to 23.0.0-charlie.1 [fbsource]
...
Differential Revision: D7859604
fbshipit-source-id: 6a2d74679f5eae3cb0102f461272b7cbd5716cba
2018-05-03 14:42:56 -07:00
David Aurelio
c157c9a1f3
Use `require.resolve` rather than `path.resolve(__dirname, ...)` to find files
...
Summary: Here, we change the mechanism of finding files from `path.resolve(__dirname, ...)` to `require.resolve(...)`. The latter depends on the location of one file rather than two, and is usually more readable and intention revealing.
Reviewed By: cpojer
Differential Revision: D7858479
fbshipit-source-id: 98373cc0860faa791e60d5f11502d762fd22a409
2018-05-03 06:21:01 -07:00
Peter van der Zee
81b49fa89b
Move hmr config generator into its own file, burn the bridge
...
Reviewed By: mjesun
Differential Revision: D7788847
fbshipit-source-id: 481a457abe58b41f5e7001601c126adc457cd28c
2018-05-02 10:47:20 -07:00
Peter van der Zee
6ddbbfbae1
Stop pulling getPreset from babel-bridge
...
Reviewed By: mjesun
Differential Revision: D7788849
fbshipit-source-id: 8db2b69f7d82b9feb9d339dc40363ba25c49d0ee
2018-05-02 10:47:20 -07:00
Peter van der Zee
cfbb4377f3
Stop pulling resolvePlugins from babel-bridge
...
Reviewed By: mjesun
Differential Revision: D7788851
fbshipit-source-id: 8b2a5f9927a434042b1c0a8f27e40acfe2600820
2018-05-02 10:47:20 -07:00
Peter van der Zee
e4198ec268
Stop pulling inlineRequiresPlugin from babel-bridge
...
Reviewed By: mjesun
Differential Revision: D7788850
fbshipit-source-id: 1a401f626a2e32ffeb68c6126e040f29a8507697
2018-05-02 10:47:20 -07:00
Peter van der Zee
6b222c394f
Stop pulling externalHelpersPlugin from babel-bridge
...
Reviewed By: mjesun
Differential Revision: D7788848
fbshipit-source-id: 0c8787f097c9526de49a95554c2e28782cc4a077
2018-05-02 10:47:19 -07:00
Peter van der Zee
dfc30f0352
Refactor the babel config generator function to what it actually does
...
Reviewed By: rubennorte
Differential Revision: D7788527
fbshipit-source-id: 4daed4d75b44b9c55a676881982cdab0034a27cc
2018-05-02 10:47:19 -07:00
Peter van der Zee
7ab8d08f89
Add `optionalChaining` as a valid babylon plugin option to flow typing
...
Reviewed By: rafeca
Differential Revision: D7828243
fbshipit-source-id: 8b3cbaa8efb0f91263b3b09cbe012f8a5d8bfdbe
2018-05-02 07:39:15 -07:00
Peter van der Zee
f64ed1369e
Move the getBabelRegisterConfig function to the one file that uses it
...
Reviewed By: rubennorte
Differential Revision: D7788532
fbshipit-source-id: 1d08d159574247366492c036f5c530c982ec67b3
2018-04-30 04:20:28 -07:00
Mayank Patke
86e1a086aa
v0.71.0 in xplat/js
...
Reviewed By: yungsters
Differential Revision: D7787035
fbshipit-source-id: 07defbbaa6fdc8f3016727fe6d6b1640efbf8ab6
2018-04-28 02:24:33 -07:00
Miguel Jimenez Esun
199a5503c5
Upgrade Jest to 23.0.0-beta.2
...
Reviewed By: davidaurelio
Differential Revision: D7789525
fbshipit-source-id: 0d0ebe30d66dbc5cd07c7517a513ac7be2c1e128
2018-04-27 20:33:49 -07:00
Peter van der Zee
ec4bad47e0
Stop pulling babylon from babel-bridge
...
Reviewed By: rubennorte
Differential Revision: D7788535
fbshipit-source-id: 243824de7cecc32fbf47c57df6009178ca57f5fd
2018-04-27 09:30:15 -07:00
Peter van der Zee
de30633c37
Stop pulling @babel/types stuff from babel-bridge
...
Reviewed By: rubennorte
Differential Revision: D7788528
fbshipit-source-id: 6df623741be7ec0f9cd6879456faa8c2147fcd29
2018-04-27 09:30:15 -07:00
Peter van der Zee
7b47942ab8
Stop pulling @babel/traverse stuff from babel-bridge
...
Reviewed By: rubennorte
Differential Revision: D7788537
fbshipit-source-id: 0f41dbcb898df9430b8ea085e46f527d5a471d4e
2018-04-27 09:30:15 -07:00
Peter van der Zee
26426ae4a5
Stop pulling @babel/template stuff from babel-bridge
...
Reviewed By: rubennorte
Differential Revision: D7788534
fbshipit-source-id: 462aefe583b1c42e09240fc2bbc9c048093493ed
2018-04-27 09:30:15 -07:00
Peter van der Zee
d352b2a178
Stop pulling @babel/generator stuff from babel-bridge
...
Reviewed By: rubennorte
Differential Revision: D7788531
fbshipit-source-id: e3244d45cbf1256b78bf838a032b2135b17d2262
2018-04-27 09:30:15 -07:00
Peter van der Zee
7aea822948
Stop pulling @babel/core stuff from babel-bridge
...
Reviewed By: rubennorte
Differential Revision: D7788533
fbshipit-source-id: e998bdfa6e7303b0811b01a6d5bc7c27aa3a7e40
2018-04-27 09:30:15 -07:00
Peter van der Zee
5acc620f42
Remove babel-generator as a dep from metro and xplat
...
Reviewed By: rubennorte
Differential Revision: D7788529
fbshipit-source-id: 6459a7a9f53d9b813e8f2c925107726ed46b4a2b
2018-04-27 09:30:15 -07:00
Peter van der Zee
d82afc42d8
Drop babel 6 stuff from babel-bridge
...
Reviewed By: rubennorte
Differential Revision: D7788530
fbshipit-source-id: ba9d5b120989ff86148a2a9ddd1ef84996c5cc02
2018-04-27 09:30:15 -07:00
David Aurelio
e0f411b8f2
Metro v0.36.1
...
Summary: contains fixes to `metro-babel-register` necessary for node 6 compat (as supported by React Native)
Reviewed By: mjesun
Differential Revision: D7788437
fbshipit-source-id: 805b185dd970bf376f11664aeabea0bb8ac94b8b
2018-04-27 07:15:56 -07:00
David Aurelio
768183db2b
metro-babel-register: node 6 compat
...
Summary:
Our prettier config inserts trailing commas into function calls. This file is supposed to run on vanilla node 6.
Here, we move files into the `src/` subdirectory, which gets transformed in the package publishing process.
Reviewed By: rafeca, mjesun
Differential Revision: D7788438
fbshipit-source-id: 6a70d113a82410a60a66bba4d7564f9376bb6d0b
2018-04-27 07:15:56 -07:00
Miguel Jimenez Esun
b09a4e376d
Remove TransformCaching.js
...
Reviewed By: jeanlauliac
Differential Revision: D7707146
fbshipit-source-id: 47f4c47b22cf65cfee05f63ad7dd81a5faf9c504
2018-04-27 06:44:13 -07:00
Rafael Oleza
a29d303273
More clean-up to Module.js
...
Reviewed By: jeanlauliac
Differential Revision: D7758143
fbshipit-source-id: 11f4de9099e5677fdf2d62bd2911570ed962c793
2018-04-27 02:44:00 -07:00
David Aurelio
1578d2f8cd
Metro v0.36.0
...
Summary: bumps the version after cache updates.
Reviewed By: mjesun
Differential Revision: D7776561
fbshipit-source-id: 8afe97323544116f147b93b92e5aa42ec1124d3a
2018-04-27 00:29:26 -07:00
Miguel Jimenez Esun
3c1cf9f688
Enforce by default a local FileStore cache
...
Reviewed By: davidaurelio
Differential Revision: D7774249
fbshipit-source-id: ec00cfc4982fa1077a9b6e9cd2be419f59323595
2018-04-26 12:29:16 -07:00
Miguel Jimenez Esun
b6494d8f81
Remove "--disable-global-cache" from the internal CLI
...
Reviewed By: davidaurelio
Differential Revision: D7774252
fbshipit-source-id: c398aed714365f1f1010ae76b06dc5ad0fa78c22
2018-04-26 12:29:16 -07:00
Rubén Norte
fc9bd150e3
Removed verification of matching @providesModule and filenames
...
Reviewed By: jeanlauliac
Differential Revision: D7758146
fbshipit-source-id: f74e5bd879d1ca562380cd942266e22e88ac7432
2018-04-26 07:25:06 -07:00
Peter van der Zee
eb21f2df5b
Add support for conditional chaining operator in our babel stack
...
Reviewed By: mjesun
Differential Revision: D7773837
fbshipit-source-id: 174b47cebda0e75fe9e31c15cfe9137d449777ee
2018-04-26 06:58:41 -07:00
Rafael Oleza
2529f81018
Bump metro@0.35.0
...
Reviewed By: mjesun
Differential Revision: D7759224
fbshipit-source-id: d21a371c196ff5c6e691fb7cce8c73dade02d385
2018-04-26 06:44:31 -07:00
Rafael Oleza
373ec95b2b
Expose customTransformOptions param on the buildGraph command
...
Reviewed By: mjesun
Differential Revision: D7759324
fbshipit-source-id: b1f8af7ecb992f97d41b7212467ed95658d88bed
2018-04-26 06:44:31 -07:00
Miguel Jimenez Esun
7f8ee6daa8
Expose all dependency information as a "data" object in the graph
...
Reviewed By: rafeca
Differential Revision: D7757483
fbshipit-source-id: b0313ab8aeb61edc3cfa2bba20f381fccd264e4a
2018-04-26 04:14:13 -07:00
Peter van der Zee
05c715bda9
Major fixup to private class property transform
...
Reviewed By: mjesun
Differential Revision: D7757633
fbshipit-source-id: d0b065b6398df2753b4ca99610c8692d4335aab3
2018-04-26 02:54:26 -07:00
David Aurelio
9433e01377
React Native Default Setup: Make Babel 7 work
...
Summary: Makes it so that the default transformer loads babel-preset-react-native again if no project `.babelrc` is defined. This makes tests like `react-native/scripts/run-android-local-integration-tests.sh` work again.
Reviewed By: mjesun
Differential Revision: D7766134
fbshipit-source-id: fa12a6e2a535c9f4b35e4b2b954b5be9d455a9cb
2018-04-26 01:10:19 -07:00
Miguel Jiménez Esún
077a20b545
Use proper quoting
...
Summary:
OCD
Closes https://github.com/facebook/metro/pull/166
Reviewed By: rafeca
Differential Revision: D7747493
Pulled By: mjesun
fbshipit-source-id: e4147ffbd9bba9bd8a4774d14d0dd2034b09f556
2018-04-25 10:50:06 -07:00
Miguel Jimenez Esun
2264fd9215
Make HTTP cache errors return null, warn, and log the error
...
Reviewed By: davidaurelio
Differential Revision: D7757419
fbshipit-source-id: 24b33995a9ddfe7aa3d4bef9e5fbbfbd5af5d533
2018-04-25 08:46:28 -07:00
Jean Lauliac
4a118ee69c
react-native-github: remove old fs mock implementation
...
Reviewed By: rafeca
Differential Revision: D7652914
fbshipit-source-id: 5494305750e7616b5120169266c519f460ae7e6d
2018-04-25 07:21:27 -07:00
Miguel Jimenez Esun
3bf01f272f
Refactor re-order dependencies: remove hybrid pseudo-module
...
Reviewed By: rafeca
Differential Revision: D7744414
fbshipit-source-id: 36995be791327e792c773482a331f00618cfb4ff
2018-04-25 05:30:02 -07:00
Miguel Jimenez Esun
884d2ca248
Pass the full dependencies object
...
Reviewed By: jeanlauliac
Differential Revision: D7731623
fbshipit-source-id: 070ab5f9909525102e19f782e8a26e79d7b880cc
2018-04-24 09:44:37 -07:00
Miguel Jimenez Esun
2efc8bef2f
Make test use snapshots instead of hardcoded objects
...
Reviewed By: jeanlauliac
Differential Revision: D7731938
fbshipit-source-id: 497f1f5cb301b9e867b8f1af7fe6ad2fa8634202
2018-04-24 09:44:37 -07:00
Miguel Jimenez Esun
6708136b76
Revert D7729796: Enforce by default a local FileStore cache
...
Differential Revision:
D7729796
Original commit changeset: 03100516973f
fbshipit-source-id: c9cc5210ac8559ff4878e27d5a5e3133408637c8
2018-04-24 06:29:55 -07:00
Peter van der Zee
76be88b515
Upgrade fb-utils test stuff to babel 7
...
Reviewed By: davidaurelio
Differential Revision: D7728255
fbshipit-source-id: acb882fa4d4cc6fe648628eaee7b80e180662a5c
2018-04-24 04:53:14 -07:00
Miguel Jimenez Esun
c26e7b7ce2
Enforce by default a local FileStore cache
...
Reviewed By: davidaurelio
Differential Revision: D7729796
fbshipit-source-id: 03100516973f42a654f849a688e6cbf104c63a68
2018-04-24 04:31:38 -07:00
David Aurelio
6b7bffe653
Move `buildRegExps` from `react-native` to `metro-babel-register`
...
Summary: Moves the `buildRegExps` function from `react-native` to `metro-babel-register`. This way, it is easier to reuse, and we can remove FB-specific logic from React Native.
Reviewed By: jeanlauliac, mjesun
Differential Revision: D7727483
fbshipit-source-id: 0f7773ff044033c465f0712c523a0aef61bf8444
2018-04-23 13:53:03 -07:00
Miguel Jimenez Esun
2a029e05e8
Use the result of the cache key function
...
Reviewed By: rafeca
Differential Revision: D7729279
fbshipit-source-id: 1684576cf18dc62a0f4de6249bc3dcd92f7f6c2f
2018-04-23 10:53:06 -07:00
Miguel Jimenez Esun
e32c71dc36
Make FileStore fully generic
...
Reviewed By: rafeca
Differential Revision: D7714699
fbshipit-source-id: 7886f99015a88fe4c92c104627aff995ea3dba42
2018-04-23 08:03:04 -07:00
David Aurelio
bce317701b
Move worker protocol and babelRegisterOnly into their own packages
...
Summary: Moves the implementation of Buck’s worker protocol into its own package and babelRegisterOnly for better reusability.
Reviewed By: rafeca
Differential Revision: D7666896
fbshipit-source-id: ae297494ced3b8dd1f9d90983a640643d6ce7896
2018-04-23 04:00:51 -07:00
Miguel Jimenez Esun
c398cd99a1
Use "getSha1" from HasteFS
...
Reviewed By: cpojer
Differential Revision: D7721378
fbshipit-source-id: 441666df325c60d94eb6e14b50c3c4cde76b3dfe
2018-04-21 11:31:07 -07:00
Miguel Jimenez Esun
d9f857e966
Upgrade Jest to 23.0.0-beta.1
...
Reviewed By: cpojer
Differential Revision: D7722547
fbshipit-source-id: 711617c5c88fced5a38067a66fda86d2b281c0a2
2018-04-21 11:31:07 -07:00
Miguel Jimenez Esun
186376b2d9
Enforce Buffer encoding
...
Reviewed By: cpojer
Differential Revision: D7721212
fbshipit-source-id: 0e42609cca653e4051c6a91801963decd8464a7d
2018-04-21 10:24:13 -07:00