nozer/quill-delta-to-html

Circular dependency

Opened this issue · 1 comments

When starting a Node.js project that has quill-delta-to-html as a NPM dependency, the following is logged:

Circular dependency: node_modules/quill-delta-to-html/dist/commonjs/OpAttributeSanitizer.js -> node_modules/quill-delta-to-html/dist/commonjs/mentions/MentionSanitizer.js -> node_modules/quill-delta-to-html/dist/commonjs/OpAttributeSanitizer.js

The proposed solution is to externalize the sanitizer to its own class so it can be referenced by both OpAttributeSanitizer and MentionSanitizer

Node: v16.14.0

This issue was resolved via the PR and the issue itself should be closed to avoid confusion