mirror of
https://github.com/status-im/metro.git
synced 2025-01-10 02:55:46 +00:00
Jean Lauliac
e74e123300
fix support for node v4
Summary: Node v4 support has been broken for some time, with CircleCI failing tests. That's because it needs an additional transform for the spread operator in call position. Ex `foo(...smth)` expanding to `foo.apply(null, smth)`. Also, the build script was using syntax not supported by Node v4. This changeset fixes the build script, and adds the missing transform. This will be used both for jest test and for the produced production output. This is needed for prod output since we want it to be able to be ran on Node v4 out-of-the-box. CircleCI will confirm these changes work properly on all supported versions of Node. Closes https://github.com/facebook/metro-bundler/pull/16 Differential Revision: D5319746 Pulled By: davidaurelio fbshipit-source-id: 6c001b562b43da0625d1ac15d018117524970431
metro-bundler
🚇 The JavaScript bundler for React Native.
- 🚅 Fast: We aim for sub-second reload cycles, fast startup and quick bundling speeds.
- ⚖️ Scalable: Works with thousands of modules in a single application.
- ⚛️ Integrated: Supports every React Native project out of the box.
This project was previously part of the react-native repository. In this smaller repository it is easier for the team working on Metro Bundler to respond to both issues and pull requests. See react-native#13976 for the initial announcement.
Description
Languages
JavaScript
100%