qrcode-generator
qrcode-generator copied to clipboard
Package canvg dependency.
I probably am a little bit old-school but I'd rather have the complete distributable in a single place instead of relying on external sources.
You have a line in index.html
import { Canvg } from 'https://cdn.skypack.dev/canvg@^4.0.0'
Since you already have qrcode lib included in the repo, it would be a good idea to also include the canvg lib. This way, the application would be completely self-contained. canvg can be downloaded from npm and packed easily using esbuild or any other bundler tool of your choice.