ckeditor / ckeditor5-angular

Official CKEditor 5 Angular 5+ component.
https://ckeditor.com/ckeditor-5
Other
202 stars 110 forks source link

CommonJS or AMD dependencies can cause optimization bailouts warning. #423

Open cami-dev opened 3 months ago

cami-dev commented 3 months ago

I keep getting this warning when I run our angular library in an angular application. The library itself has ckeditor as peerdependency and has compenents that uses ckeditor, so the app installs ckeditor in their own package.json. I'm trying to understand why this warning occurs and what I understand it's saying that ckeditor is not built on ECMAScript modules?

Warning: libname.mjs depends on '@ckeditor/ckeditor5-build-classic'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

I can silence this by adding the following to the angular.json, but should this really happen? As I understood ckeditor is using ESmodules, or is it not? "allowedCommonJsDependencies": [ "ckeditor" ]