Skip to content

{issue]: Warning - CommonJS or AMD dependencies can cause optimization bailouts #48

@Grishpan

Description

@Grishpan

This library hasn't been updated in a while but I was still wondering if this is a misuse on my side or not.
So I'm working with angular, in my typescript file I'm adding: import t from 'typy'; and during build time I'm getting this warning:

Warning: ...\ui-branding.service.ts depends on 'typy'. CommonJS or AMD dependencies can cause optimization bailouts.

I know that I can add it to allowedCommonJsDependencies in angular.json to suppress the issue but am still wondering if this dependency can be packaged with ECMAScript for better optimization and overall bundle size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions