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.
1 parent 894b0de commit 98565ccCopy full SHA for 98565cc
lib/consolidate.js
@@ -1312,7 +1312,13 @@ function reactRenderer(type){
1312
1313
if (!cache(options)){
1314
// Parsing
1315
- Code = (type === 'path') ? require(resolve(str)) : requireReactString(str);
+ if (type === 'path') {
1316
+ var path = resolve(str)
1317
+ delete require.cache[path]
1318
+ Code = require(path)
1319
+ } else {
1320
+ Code = requireReactString(str)
1321
+ }
1322
Factory = cache(options, react.createFactory(Code));
1323
1324
} else {
0 commit comments