import {saveAs} from 'file-saver': CommonJS or AMD dependencies can cause optimization bailouts

Discussão em 'Angular' iniciado por Jan Nielsen, Janeiro 31, 2025.

  1. Jan Nielsen

    Jan Nielsen Guest

    After upgrading to Angular 10, my download file-saver saveAs triggers the following compilation warning:

    CommonJS or AMD dependencies can cause optimization bailouts.


    The compiler also provides a link to an explanation and how to disable the warning. Instead of disabling the warning, is there a ES bundle implementation for the saveAs functionality?

    Continue reading...

Compartilhe esta Página