donotebase / quasar-tiptap

A modern WYSIWYG rich-text editor built on top of tiptap and Quasar for Vue.js.
https://donotebase.github.io/quasar-tiptap
MIT License
310 stars 61 forks source link

Can't remove unwanted extensions (Katex, Mermaid, Codemirror) #55

Open jaybo opened 3 years ago

jaybo commented 3 years ago

I'm trying to avoid importing RecommendedExtensions and have created my own alternate which doesn't include Katex, Mermaid, and Codemirror. since these three extensions use 1.8MB and I don't need these particular features. But even so, my quasar webpack includes these modules. I presume this is because /src/components/QuasarTiptap.vue imports the world anyway:

  ...
  OKatexBlock,
  OKatexInline,
  OFormatClear,
  OPrint,
  OImage,
  OEmbed,
  RecommendedExtensions
} from 'src/extentions'

image

So, is there anyway to prevent these large extensions from loading?