vue-styleguidist
Version:
Vue components style guide generator
15 lines • 427 B
JavaScript
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/web.dom-collections.for-each.js";
export default function (examples) {
examples.forEach(function (ex) {
if (ex.type === 'code') {
if (ex.compiled !== undefined && typeof ex.content === 'string') {
var content = {
raw: ex.content,
compiled: ex.compiled
};
ex.content = content;
}
}
});
}