ggml-org/whisper.cpp

Node package ES6 compatibility

Open

#335 opened on Dec 26, 2022

View on GitHub
 (0 comments) (2 reactions) (0 assignees)C++ (49,693 stars) (5,535 forks)batch import
buildhelp wanted

Description

The node package that's currently built is not an ES6 compatible package.

I've tried adding the -s EXPORT_ES6 flag and it seems to work properly, but the output still has mixed usage of CommonJS requires and ES6 imports, which breaks things.

Contributor guide