Closed
Description
Hi, this is a simple one to fix.
I noticed there are a couple var
declarations missing in the mixpanel-jslib-snippet.js
file.
mixpanel-js/mixpanel-jslib-snippet.js
Lines 90 to 91 in a83b082
As I'm using the snippet source code to load mixpanel lib from my Typescript code asynchronously. The Typescript compiler is complaining about those missing var
declarations.
If you wonder why I'm using the snippet code directly in my Typescript files, it's because I don't want to include the snippet in my index.html as I want to keep scripts in the index.html file to a minimum to avoid blocking the UI thread.
I think this approach is a nice workaround for this issue.
Metadata
Metadata
Assignees
Labels
No labels