We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b8bee4 + 98565cc commit 81a3ec6Copy full SHA for 81a3ec6
lib/consolidate.js
@@ -1467,7 +1467,13 @@ function reactRenderer(type){
1467
1468
if (!cache(options)){
1469
// Parsing
1470
- Code = (type === 'path') ? require(resolve(str)) : requireReactString(str);
+ if (type === 'path') {
1471
+ var path = resolve(str)
1472
+ delete require.cache[path]
1473
+ Code = require(path)
1474
+ } else {
1475
+ Code = requireReactString(str)
1476
+ }
1477
Factory = cache(options, react.createFactory(Code));
1478
1479
} else {
0 commit comments