spite / ccapture.js

A library to capture canvas-based animations at a fixed framerate
MIT License
3.55k stars 406 forks source link

Basic bundling example #113

Open akella opened 4 years ago

akella commented 4 years ago

This is just a demo to test package compatibility with bundlers. Instructions are in readme.md. This works with this PR https://github.com/spite/ccapture.js/pull/89 done by @unsigno
Does not work with current master branch.

spite commented 4 years ago

Is this a parcel specific usage, or does it apply to other bundlers?

Also, does npm link allow you to work with your local development version, and other projects use that local version, instead of having to check out the version hosted on npm?

akella commented 4 years ago

As far as i know, there is nothing parcel specific in here, should work with Webpack and others just like that, same code.

Yep, this alias-link makes all the projects use local dependency instead of npm one. This is usually recommended way to test them locally.

gsimone commented 3 years ago

Can confirm I easily integrated that fork in a rollup project, if you want to see a working example: https://github.com/gsimone/r3f-ccapture