After running npm install omnitone, I'm trying the following in my code:
const Omnitone = require('omnitone');
This results in an empty object. I see on the browser's console the Omnitone version statement logged, so I know the library is getting bundled and ran.
Any advice on how to properly require() this library? I'm using Browserify for bundling.
After running
npm install omnitone
, I'm trying the following in my code:This results in an empty object. I see on the browser's console the Omnitone version statement logged, so I know the library is getting bundled and ran.
Any advice on how to properly
require()
this library? I'm using Browserify for bundling.