Download / ulog

The universal logger
https://ulog.js.org
MIT License
86 stars 19 forks source link

Use ESModules instead of module.exports #71

Open iva2k opened 2 years ago

iva2k commented 2 years ago

Using ulog in Angular triggers this warning:

Warning: .\src\app\app.module.ts depends on 'ulog'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

'debug' seems to be adding ESModules to v5

https://github.com/visionmedia/debug/issues/786

Download commented 2 years ago

I'd be open to it. If you can provide guidance on how to do it, please consider opening a PR with a proof of concept.