Error "Unexpected token `export`" when importing soundtouchjs
sharad-s opened this issue · 1 comments
sharad-s commented
Unable to use soundtouchjs as intended because the dist file uses the export
keyword which errors out on load.
The line can be viewed here:
SoundTouchJS/dist/soundtouch.js
Line 1147 in 53d5b72
I fixed this issue locally by changing the export
keyword to module.exports =
as so:
However, it would be great to have this fixed.
Thanks!
cutterbl commented
That's because I don't currently provide a commonJS build of SoundTouchJS. You can fork the project and create your own commonJS build, or submit a Pull Request if you like, until I do create one.