@zohodesk/react-cli 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/docs/ReactLive.md +4 -0
- package/lib/loaders/docsLoader.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/docs/ReactLive.md
CHANGED
@@ -6,7 +6,7 @@ var _getOptions = _interopRequireDefault(require("../utils/getOptions.js"));
|
|
6
6
|
|
7
7
|
var _path = _interopRequireDefault(require("path"));
|
8
8
|
|
9
|
-
var
|
9
|
+
var _reactLiveConvertor = require("./reactLiveConvertor");
|
10
10
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12
12
|
|
@@ -24,7 +24,7 @@ module.exports = function (source) {
|
|
24
24
|
|
25
25
|
const src = _fs.default.readFileSync(originalFilePath).toString();
|
26
26
|
|
27
|
-
options.docs.enableReactLive && (source = (0,
|
27
|
+
options.docs.enableReactLive && (source = (0, _reactLiveConvertor.reactLiveConvertor)(source, originalFilePath)); //to Enable the ReactLive Converter
|
28
28
|
|
29
29
|
return `${source};${name}.source=${JSON.stringify(src)};${name}.filePath=${JSON.stringify(filePath)}`;
|
30
30
|
};
|