Skip to content

Commit 7a4eda2

Browse files
Miguel Jimenez Esunfacebook-github-bot
authored andcommitted
Remove default polyfills from metro-bundler
Reviewed By: davidaurelio Differential Revision: D5423673 fbshipit-source-id: a66655cd72d56eb60a8a79a298ebfbc746b5ad10
1 parent 1d30ace commit 7a4eda2

File tree

10 files changed

+20
-0
lines changed

10 files changed

+20
-0
lines changed

.flowconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
; "node_modules/react-native" but in the source repo it is in the root
2020
.*/Libraries/react-native/React.js
2121

22+
; Ignore polyfills
23+
.*/Libraries/polyfills/.*
24+
2225
[include]
2326

2427
[libs]

Libraries/polyfills/Array.es6.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule Array.es6
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
/* eslint-disable */

Libraries/polyfills/Array.prototype.es6.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule Array.prototype.es6
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
/* eslint-disable */

Libraries/polyfills/Number.es6.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule Number.es6
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
/* eslint-disable strict */

Libraries/polyfills/Object.es6.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule Object.es6
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
/* eslint-disable strict */

Libraries/polyfills/Object.es7.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule Object.es7
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
(function() {

Libraries/polyfills/String.prototype.es6.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule String.prototype.es6
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
/* eslint-disable strict, no-extend-native, no-bitwise */

Libraries/polyfills/babelHelpers.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule babelHelpers
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
/* eslint-disable */

Libraries/polyfills/console.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule console
910
* @polyfill
1011
* @nolint
1112
*/

Libraries/polyfills/error-guard.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*
9+
* @providesModule error-guard
910
* @polyfill
11+
* @nolint
1012
*/
1113

1214
/* eslint-disable strict */

0 commit comments

Comments
 (0)