Closed motohead400 closed 10 months ago
Hi, to fix that warning you should add cropperjs to allowedCommonJsDependencies in your angular.json:
meanwhile I’ll investigate the benefits of using the esm build
Hello, that just removes the warning but doesn't fix the problem. As it states, dependencies on commonjs cause optimization bailouts, so that dependency will cause a much larger package.
Hi, any word on this?
It looks like this module should be importing cropperjs via
import Cropper from 'cropperjs/dist/cropper.esm.js';
https://github.com/fengyuanchen/cropperjs/issues/1010