Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-export classes from quill-delta and parchment #145

Open
schmkr opened this issue Apr 26, 2024 · 0 comments
Open

re-export classes from quill-delta and parchment #145

schmkr opened this issue Apr 26, 2024 · 0 comments

Comments

@schmkr
Copy link

schmkr commented Apr 26, 2024

Would it be possible to re-export the classes and types/interfaces from quill-delta and parchment?

Reason for asking is that in our projects, we have set up the [import/no-extraneous-dependencies] (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md) eslint rule. So when we want to import Delta or a type/class from parchment, we have to add quill-delta as a direct dependency to our package.json (or ignore the eslint rule in the file).

Ideally, it would be possible to import like so:

import { Quill, Delta, Attributor } from 'quill';
// or for backwards compatibility:
import Quill, { Delta, Attributor } from 'quill';

I checked Quill's package.json and both quill-delta and parchment are already defined as dependencies, so in terms of bundle size, this would/should not change much, I suppose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant