Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using NPM-installed version with bundler #105

Open
bradisbell opened this issue Jul 7, 2020 · 1 comment
Open

Using NPM-installed version with bundler #105

bradisbell opened this issue Jul 7, 2020 · 1 comment

Comments

@bradisbell
Copy link

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.

@0xpolarzero
Copy link

If anyone is checking this to get an answer, it worked for me using this path instead :

import { default as Omnitone } from 'omnitone/build/omnitone.esm';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants