I'm trying to write a React app that makes use of the new AudioWorklet processors, but I'm facing a wall: to communicate data with the main thread, I need to extend the AudioWorkletNode class as seen here: https://github.com/GoogleChromeLabs/web-audio-samples/blob/gh-pages/audio-worklet/basic/message-port.html#L70-L95, but it does not work when the class is transpiled to ES5 function.
Is there a way to configure babel to emit es6 instead of es5?
Thanks
I'm trying to write a React app that makes use of the new AudioWorklet processors, but I'm facing a wall: to communicate data with the main thread, I need to extend the AudioWorkletNode class as seen here: https://github.com/GoogleChromeLabs/web-audio-samples/blob/gh-pages/audio-worklet/basic/message-port.html#L70-L95, but it does not work when the class is transpiled to ES5 function.
Is there a way to configure babel to emit es6 instead of es5?
Thanks