contentco / quill-emoji

Quill module toolbar extension for emoji
274 stars 166 forks source link

Importing quill-emoji/dist/quill-emoji.js at Angular 11 it is causing optimization bailouts #119

Open zhuniqiabedin opened 3 years ago

zhuniqiabedin commented 3 years ago

I am using the quill-emoji.js in the Angular v11 but I am having some warning messages at the npm start.

Warning: /Users/xxx/Projects/my-project/frontend/src/app/components/modals/header-dialog/header-dialog.component.ts depends on 'quill-emoji/dist/quill-emoji.js'. CommonJS or AMD dependencies can cause optimization bailouts.

This is the import. import "quill-emoji/dist/quill-emoji.js";

This is the imported module. import { QuillModule } from "ngx-quill"; QuillModule.forRoot()

This is the package.json "ngx-quill": "^13.0.1", "quill": "^1.3.7", "quill-emoji": "^0.1.8", "quill-image-resize-module": "^3.0.0", "quill-mention": "^3.0.0"

It is possible to fix it in the Angular v11 ?