UNPKG

@vuedoc/parser

Version:

Generate a JSON documentation for a Vue file

21 lines 556 B
// eslint-disable-next-line import/no-unresolved import pug from 'pug'; import { Loader } from '../lib/Loader.js'; /** * @note Install the [pug](https://www.npmjs.com/package/pug) peer dependency */ export class PugLoader extends Loader { load(data) { this.emitTemplate({ ...data, content: pug.render(data.content, { compileDebug: false, }), attrs: { ...data.attrs, lang: 'html', }, }); } } //# sourceMappingURL=pug.js.map