Comparing version 16.0.1 to 16.0.2
@@ -0,1 +1,5 @@ | ||
### 16.0.2 | ||
- Fixes a bug where a JSON module would fail to load because it would try to re-parse the content while it was already done | ||
### 16.0.1 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "mr", | ||
"version": "16.0.1", | ||
"version": "16.0.2", | ||
"description": "A refresh-only CommonJS module system for browsers, used in Montage", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -945,3 +945,5 @@ | ||
if (json) { | ||
module.exports = JSON.parse(module.text); | ||
if(typeof module.exports !== "object" && typeof module.text === "string") { | ||
module.exports = JSON.parse(module.text); | ||
} | ||
//module.text = null; | ||
@@ -948,0 +950,0 @@ return module; |
141358
3419