Random @providesModule related fixes

Reviewed By: jeanlauliac

Differential Revision: D4507885

fbshipit-source-id: 34d1a7be26febf7d93b65ba8fff635ab44e6459d
This commit is contained in:
Bhuwan Khattar 2017-02-06 07:56:27 -08:00 committed by Facebook Github Bot
parent e04b3bf52e
commit 2939e942fa
3 changed files with 12 additions and 12 deletions

View File

@ -22,7 +22,7 @@ exports.moduleSystem = require.resolve('./src/Resolver/polyfills/require.js');
exports.platforms = ['ios', 'android', 'windows', 'web'];
exports.polyfills = [
require.resolve('./src/Resolver/polyfills/polyfills.js'),
require.resolve('./src/Resolver/polyfills/Object.es6.js'),
require.resolve('./src/Resolver/polyfills/console.js'),
require.resolve('./src/Resolver/polyfills/error-guard.js'),
require.resolve('./src/Resolver/polyfills/Number.es6.js'),

View File

@ -149,27 +149,27 @@ describe('Resolver', function() {
.calls
.map((call) => call[0]))
.toEqual([
{ id: 'polyfills/polyfills.js',
file: 'polyfills/polyfills.js',
{ id: 'polyfills/Object.es6.js',
file: 'polyfills/Object.es6.js',
dependencies: []
},
{ id: 'polyfills/console.js',
file: 'polyfills/console.js',
dependencies: [
'polyfills/polyfills.js'
'polyfills/Object.es6.js'
],
},
{ id: 'polyfills/error-guard.js',
file: 'polyfills/error-guard.js',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js'
],
},
{ id: 'polyfills/Number.es6.js',
file: 'polyfills/Number.es6.js',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js',
'polyfills/error-guard.js'
],
@ -177,7 +177,7 @@ describe('Resolver', function() {
{ id: 'polyfills/String.prototype.es6.js',
file: 'polyfills/String.prototype.es6.js',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js',
'polyfills/error-guard.js',
'polyfills/Number.es6.js',
@ -186,7 +186,7 @@ describe('Resolver', function() {
{ id: 'polyfills/Array.prototype.es6.js',
file: 'polyfills/Array.prototype.es6.js',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js',
'polyfills/error-guard.js',
'polyfills/Number.es6.js',
@ -196,7 +196,7 @@ describe('Resolver', function() {
{ id: 'polyfills/Array.es6.js',
file: 'polyfills/Array.es6.js',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js',
'polyfills/error-guard.js',
'polyfills/Number.es6.js',
@ -207,7 +207,7 @@ describe('Resolver', function() {
{ id: 'polyfills/Object.es7.js',
file: 'polyfills/Object.es7.js',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js',
'polyfills/error-guard.js',
'polyfills/Number.es6.js',
@ -219,7 +219,7 @@ describe('Resolver', function() {
{ id: 'polyfills/babelHelpers.js',
file: 'polyfills/babelHelpers.js',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js',
'polyfills/error-guard.js',
'polyfills/Number.es6.js',
@ -300,7 +300,7 @@ describe('Resolver', function() {
{ file: 'some module',
id: 'some module',
dependencies: [
'polyfills/polyfills.js',
'polyfills/Object.es6.js',
'polyfills/console.js',
'polyfills/error-guard.js',
'polyfills/Number.es6.js',