broofa / mime

Mime types for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular 10 Warning

Christian-Seiler opened this issue · comments

Angular 10 now gives a warning to users who are using this library due to it being a CommonJS package.

WARNING in mime.service.ts depends on mime/lite. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Working on it (slowly, obviously).

Closing. mime@4 (published as mime@beta`) is ESM-only, which should fix this issue.