import Quill from 'quill/core';
import Bold from 'quill/formats/bold';
import Italic from 'quill/formats/italic';
import Snow from 'quill/themes/snow';
import Toolbar from 'quill/modules/toolbar';
And load just the code you need and keep the bundle size reasonably low (40kb).
But because this lib is doing import Quill from "quill"; it causes quill to load either twice, or with some extra dependencies for me.
Hi! One benefit of Quill is that it is modular.
So you can import like this
And load just the code you need and keep the bundle size reasonably low (40kb).
But because this lib is doing
import Quill from "quill";
it causes quill to load either twice, or with some extra dependencies for me.This happens with vite.
quill-mention
causes the same issue for me: https://github.com/afry/quill-mention/issues/223quill-magic-url
doesn't cause this issue. It doesn't doQuill.register
for you and it only importsquill-delta
, not wholequill
.