unplugin / unplugin-vue-markdown

Compile Markdown to Vue component
MIT License
508 stars 27 forks source link

Generate sourcemaps #6

Closed killjoy1221 closed 2 years ago

killjoy1221 commented 2 years ago

Clear and concise description of the problem

When building with sourcemaps enabled, a message is displayed from vite.

Sourcemap is likely to be incorrect: a plugin (vite-plugin-vue-markdown) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

Suggested solution

The return type in createMarkdown should return an object of {code, map}

Sourcemap Transform Reference

Alternative

No response

Additional context

No response

Validations