justmoon / node-extend

Simple function to extend objects
MIT License
341 stars 68 forks source link

depends on 'extend'. CommonJS or AMD dependencies can cause optimization bailouts. #62

Closed cipchk closed 2 years ago

cipchk commented 2 years ago

Can support es module? in angular14 should be warnning: depends on 'rfdc'. CommonJS or AMD dependencies can cause optimization bailouts.

How to avoid this warning?

ljharb commented 2 years ago

This warning is incorrect, so you should ignore it. There’s no advantage to using ES modules that CJS modules lack.

Unless angular allows you to disable the warning, the only way to avoid it is to not use angular.