@@ -151,13 +151,19 @@ class Resolver {
151
151
}
152
152
153
153
getModuleSystemDependencies ( options ) {
154
+ var dirname = __dirname ;
155
+ // Temporary workaround for case sensitivity. See: https://github.com/ReactWindows/react-native/issues/221
156
+ if ( require ( 'os' ) . platform ( ) === 'win32' ) {
157
+ dirname = __dirname . replace ( __dirname . substr ( 0 , 1 ) , __dirname . substr ( 0 , 1 ) . toLowerCase ( ) ) ;
158
+ }
159
+
154
160
const opts = getDependenciesValidateOpts ( options ) ;
155
161
156
162
const prelude = opts . dev
157
- ? path . join ( __dirname , 'polyfills/prelude_dev.js' )
158
- : path . join ( __dirname , 'polyfills/prelude.js' ) ;
163
+ ? path . join ( dirname , 'polyfills/prelude_dev.js' )
164
+ : path . join ( dirname , 'polyfills/prelude.js' ) ;
159
165
160
- const moduleSystem = path . join ( __dirname , 'polyfills/require.js' ) ;
166
+ const moduleSystem = path . join ( dirname , 'polyfills/require.js' ) ;
161
167
162
168
return [
163
169
prelude ,
@@ -170,16 +176,22 @@ class Resolver {
170
176
}
171
177
172
178
_getPolyfillDependencies ( ) {
179
+ var dirname = __dirname ;
180
+ // Temporary workaround for case sensitivity. See: https://github.com/ReactWindows/react-native/issues/221
181
+ if ( require ( 'os' ) . platform ( ) === 'win32' ) {
182
+ dirname = __dirname . replace ( __dirname . substr ( 0 , 1 ) , __dirname . substr ( 0 , 1 ) . toLowerCase ( ) ) ;
183
+ }
184
+
173
185
const polyfillModuleNames = [
174
- path . join ( __dirname , 'polyfills/polyfills.js' ) ,
175
- path . join ( __dirname , 'polyfills/console.js' ) ,
176
- path . join ( __dirname , 'polyfills/error-guard.js' ) ,
177
- path . join ( __dirname , 'polyfills/Number.es6.js' ) ,
178
- path . join ( __dirname , 'polyfills/String.prototype.es6.js' ) ,
179
- path . join ( __dirname , 'polyfills/Array.prototype.es6.js' ) ,
180
- path . join ( __dirname , 'polyfills/Array.es6.js' ) ,
181
- path . join ( __dirname , 'polyfills/Object.es7.js' ) ,
182
- path . join ( __dirname , 'polyfills/babelHelpers.js' ) ,
186
+ path . join ( dirname , 'polyfills/polyfills.js' ) ,
187
+ path . join ( dirname , 'polyfills/console.js' ) ,
188
+ path . join ( dirname , 'polyfills/error-guard.js' ) ,
189
+ path . join ( dirname , 'polyfills/Number.es6.js' ) ,
190
+ path . join ( dirname , 'polyfills/String.prototype.es6.js' ) ,
191
+ path . join ( dirname , 'polyfills/Array.prototype.es6.js' ) ,
192
+ path . join ( dirname , 'polyfills/Array.es6.js' ) ,
193
+ path . join ( dirname , 'polyfills/Object.es7.js' ) ,
194
+ path . join ( dirname , 'polyfills/babelHelpers.js' ) ,
183
195
] . concat ( this . _polyfillModuleNames ) ;
184
196
185
197
return polyfillModuleNames . map (
0 commit comments