Skip to content

Commit

Permalink
Remove default polyfills from metro-bundler
Browse files Browse the repository at this point in the history
Reviewed By: davidaurelio

Differential Revision: D5423673

fbshipit-source-id: a66655cd72d56eb60a8a79a298ebfbc746b5ad10
  • Loading branch information
Miguel Jimenez Esun authored and facebook-github-bot committed Jul 17, 2017
1 parent 1d30ace commit 7a4eda2
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js

; Ignore polyfills
.*/Libraries/polyfills/.*

[include]

[libs]
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/Array.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule Array.es6
* @polyfill
* @nolint
*/

/* eslint-disable */
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/Array.prototype.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule Array.prototype.es6
* @polyfill
* @nolint
*/

/* eslint-disable */
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/Number.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule Number.es6
* @polyfill
* @nolint
*/

/* eslint-disable strict */
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/Object.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule Object.es6
* @polyfill
* @nolint
*/

/* eslint-disable strict */
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/Object.es7.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule Object.es7
* @polyfill
* @nolint
*/

(function() {
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/String.prototype.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule String.prototype.es6
* @polyfill
* @nolint
*/

/* eslint-disable strict, no-extend-native, no-bitwise */
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/babelHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule babelHelpers
* @polyfill
* @nolint
*/

/* eslint-disable */
Expand Down
1 change: 1 addition & 0 deletions Libraries/polyfills/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule console
* @polyfill
* @nolint
*/
Expand Down
2 changes: 2 additions & 0 deletions Libraries/polyfills/error-guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule error-guard
* @polyfill
* @nolint
*/

/* eslint-disable strict */
Expand Down

0 comments on commit 7a4eda2

Please sign in to comment.