UNPKG

@piwikpro/vue-piwik-pro

Version:

Piwik PRO tracking library for VueJS

20 lines (19 loc) 599 B
import * as PiwikPRO from "@piwikpro/tracking-base-library"; import { Miscellaneous } from "@piwikpro/tracking-base-library"; export * from "@piwikpro/tracking-base-library"; const version = "1.7.0"; const initialize = (...args) => { if (typeof window !== "undefined") { Miscellaneous.setTrackingSourceProvider("vue", version); } PiwikPRO.default.initialize(...args); }; const index = { ...PiwikPRO.default, initialize // fixes some 'The inferred type of 'default' cannot be named without a reference to ...' error }; export { index as default }; //# sourceMappingURL=index.js.map