Skip to content

How to target ES6? #4421

@sinedied

Description

@sinedied

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions