promise-all-properties icon indicating copy to clipboard operation
promise-all-properties copied to clipboard

ES Modules build output instead of commonjs

Open Maximaximum opened this issue 3 months ago • 0 comments

When using import { promiseAllProperties } from 'promise-all-properties'; or import promiseAllProperties from 'promise-all-properties'; in an Angular v18 project, the compilation gives a reasonable warning:

Warning: ....\my-angular.service.ts depends on 'promise-all-properties'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.dev/tools/cli/build#configuring-commonjs-dependencies

It would be nice if this lib could migrate to use the ESM output format to support tree shaking.

Maximaximum avatar Nov 22 '24 07:11 Maximaximum