Any way to just import snowplow from node_modules?

I can’t find any way to use snowplow in a way that’s similar to other common libraries. Essentially what I want is something like

import snowplow from 'snowplow-tracker'
const tracker = snowplow(domain, appId, false)

tracker.trackStructEvent(stuff)

but, as far as I can tell, that’s not an option without embedding script tags into the html? Am I missing something or has anyone done something like this?

Hi @Brantron - this isn’t currently supported. There’s a ticket to track this here: