You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var rasterizeHTML = require('rasterizehtml')
var canvas = document.createElement("canvas")
document.body.appendChild(canvas)
rasterizeHTML.drawHTML('Some <span style="color: green">HTML</span>', canvas)
because this package doesn't specify a main field in package.json and also doesn't use the default main of index.js as the main require point for browserify
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'd like to support browserify. I'm a bit hesitant to add a main field for now though as long as the require-able file is a compiled product and not a proper source file (rasterizehtml ships the dist dir). Maybe adding a simple "browser" directive is enough for browserify. I'll check once I'm on a proper device.
hi, this code doesn't work right now:
because this package doesn't specify a
main
field in package.json and also doesn't use the defaultmain
ofindex.js
as the main require point for browserifyThe text was updated successfully, but these errors were encountered: