Commit Graph

2136 Commits

Author SHA1 Message Date
Rafael Oleza cdbacc96b7 Make output types from Delta Bundler generic
Reviewed By: jeanlauliac

Differential Revision: D7894080

fbshipit-source-id: 0f560c4600b4931bcc8f32ded10a7933d1ead984
2018-05-11 15:17:21 -07:00
Rafael Oleza 095426d038 Change the worker response to return an array of outputs
Reviewed By: davidaurelio

Differential Revision: D7877462

fbshipit-source-id: 94dba306c7a7f8611df5e5f59d0147e38ef89f0e
2018-05-11 15:17:21 -07:00
Rafael Oleza 5c8b86aed5 Change the Graph data structure to support multiple transform output types
Reviewed By: davidaurelio

Differential Revision: D7877461

fbshipit-source-id: 02a7bf2273768fed567aa931ecb8e65b3dd74502
2018-05-11 15:17:21 -07:00
Rafael Oleza f9a0767498 Namespace the transformer output types
Reviewed By: davidaurelio

Differential Revision: D7877463

fbshipit-source-id: 00c23ef6418621ec0829ddbb793e131ae30279c3
2018-05-11 15:17:21 -07:00
Rafael Oleza 94f531ad79 Move type calculation to the worker
Reviewed By: davidaurelio

Differential Revision: D7877465

fbshipit-source-id: b5b444e383363ae3b80f5fe099d99203435b8d69
2018-05-11 15:17:21 -07:00
Jean Lauliac 192e1080ab metro-buck: add script to auto-gen source maps and stacks
Reviewed By: davidaurelio

Differential Revision: D7952999

fbshipit-source-id: 267dec03b5b60786355d33856bba46a9e367b275
2018-05-11 04:18:53 -07:00
Peter van der Zee 99598062ef Swap out metro-babylon7 for babylon in metro
Reviewed By: mjesun

Differential Revision: D7948314

fbshipit-source-id: e9f16cae195a5aecba3c33bd3ae528935f792e2f
2018-05-10 08:06:34 -07:00
Peter van der Zee 95e2b064df Bump babylon on xplat/js to version 7 beta40
Reviewed By: mjesun

Differential Revision: D7948316

fbshipit-source-id: 6932db71d8abb8b739559a0f785962d2d5b39f50
2018-05-10 08:06:34 -07:00
David Aurelio 3984db5a88 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.

Originally landed as D7858479

Reviewed By: mjesun

Differential Revision: D7908400

fbshipit-source-id: f0ed6db9458ed89708d8b441e3a2a325c457d614
2018-05-09 09:09:55 -07:00
Jean Lauliac de68d129f7 metro-memory-fs: add some very basic 'mode' handling
Reviewed By: rafeca

Differential Revision: D7890886

fbshipit-source-id: 2c9cfac43b745614cdf149ed242a324fc45077b1
2018-05-08 13:01:01 -07:00
Jean Lauliac bfcf4e32d9 metro-memory-fs: implement watcher persistent option
Reviewed By: mjesun

Differential Revision: D7890835

fbshipit-source-id: b6a4e9aea1095dedd44e5ea341ad5fcf0ebd136e
2018-05-08 13:01:01 -07:00
David Aurelio 5f6ada9e8b Back out stack D7846453..D7858549
Differential Revision: D7888839

fbshipit-source-id: 872969ab2f92abae0a8bb5472779a46ffe85e2a7
2018-05-05 14:06:37 -07:00
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