quill icon indicating copy to clipboard operation
quill copied to clipboard

Importing modules directly fails with Quill 2.0.2

Open p-e-w opened this issue 1 year ago • 1 comments

The documentation suggests that Quill's modules can be imported like this (example from linked documentation page):

import { Delta } from 'quill';

However, that flat out doesn't work as Delta and other relevant types aren't exported. Only the clunky Quill.import syntax actually works for importing those modules.

p-e-w avatar May 21 '24 04:05 p-e-w

Good catch! You can either import Delta via Quill.import() and import { Delta } from 'quill/core'; but we should support import { Delta } from 'quill';

luin avatar May 22 '24 05:05 luin