chrisguttandin / standardized-audio-context

A cross-browser wrapper for the Web Audio API which aims to closely follow the standard.
MIT License
668 stars 33 forks source link

error with optimized builds on angular #964

Open shahraship opened 3 years ago

shahraship commented 3 years ago

node_modules/standardized-audio-context/build/es2019/module.js depends on 'automation-events'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

any plans on switching to EcmaScript Modules?

chrisguttandin commented 3 years ago

Hi @shahraship,

thanks for the heads-up. I noticed this myself but don't really know what to do about it. automation-events is build and published in the very same way as standardized-audio-context. It also has a module property which points to the ES2019 build.

If you have an idea how to fix this, I would be more than happy to do so.