quasar-tiptap icon indicating copy to clipboard operation
quasar-tiptap copied to clipboard

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

Open jaybo opened this issue 3 years ago • 0 comments

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?

jaybo avatar Mar 29 '21 01:03 jaybo