emersonbottero / vitepress-plugin-mermaid

Add mermaid support for Vitepress
MIT License
87 stars 20 forks source link

fix: set `types` condition to exports field #66

Closed TatsuyaYamamoto closed 7 months ago

TatsuyaYamamoto commented 7 months ago

Sorry for creating a PR without creating an issue.

I noticed to need to edit package.json to resolve type of vitepress-plugin-mermaid. types must be defined in exports field for conditional export environment.

For example, vue/core has a similar definition. https://github.com/vuejs/core/blob/main/packages/vue/package.json#L22