paramander / contentful-rich-text-vue-renderer

Render Contentful Rich Text field using Vue
https://www.npmjs.com/package/contentful-rich-text-vue-renderer
MIT License
38 stars 12 forks source link

Avoid dynamic require by replacing vue with shim in browser #46

Closed tolgap closed 2 years ago

tolgap commented 2 years ago

Fixes #42

Avoids doing a conditional require by introducing a browser shim for Vue. This solves the conditional require as a build step, rather than a import step.