-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Need help to generate a UMD module #7
Comments
git clone https://github.com/Kagami/avif.js
npm i
git apply parcel.patch # this step is important
npm start In the dist dir it will contain the An example of using api exposed from Line 4 in 69b5290
|
Detailed example:
import avif from './avif.js';
avif.register(navigator.serviceWorker.register('avif-sw.js'), {
wasmURL: 'https://example.com/dav1d.wasm')
});
|
Hello,
I'm quite lost on how to generate a UMD module to use in a browser. I have an error while using browserify, which seems to be linked to babelify, which I need to use first apparently. There's no clear explanation on how to do that. Can you provide a guide on how to do so ?
The text was updated successfully, but these errors were encountered: