Skip to content

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

@cami-dev

Description

@cami-dev

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"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions