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
I'm using webpack to build the site's js as a single file
Previously I had installed the published schnack package, and then simply imported the built schnack client as a module like import Schnack from 'schnack/build/client.js'.
This worked, but the current version of the schnack package on npm has an old sqlite3 dependency which isn't compatible with node 12. Looking at the situation more closely installing the whole schnack package just to get at schnack/build/client.js might not be the best approach given that it means installing all the schnack dependencies as well.
I think this would be a fairly common use-case, so I figure that others might find it useful to have the schnack client js published as a standalone module, ready for use with webpack or so.
The text was updated successfully, but these errors were encountered:
I'm using webpack to build the site's js as a single file
Previously I had installed the published schnack package, and then simply imported the built schnack client as a module like
import Schnack from 'schnack/build/client.js'
.This worked, but the current version of the schnack package on npm has an old sqlite3 dependency which isn't compatible with node 12. Looking at the situation more closely installing the whole schnack package just to get at
schnack/build/client.js
might not be the best approach given that it means installing all the schnack dependencies as well.I think this would be a fairly common use-case, so I figure that others might find it useful to have the schnack client js published as a standalone module, ready for use with webpack or so.
The text was updated successfully, but these errors were encountered: