marktext / muya

📄 Future markdown editor for web browser applications development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

snabbdom.js?t=1649865073135:25 Uncaught ReferenceError: require is not defined at snabbdom.js?t=1649865073135:25:23

imp-oh opened this issue · comments

commented

muya\lib\utils\snabbdom.js

export const toHTML = require('snabbdom-to-html') // helper function for convert vnode to HTML string

// Modify the code

import snabbdomToHtml from 'snabbdom-to-html'
export const toHTML = snabbdomToHtml // helper function for convert vnode to HTML string