Support for TypeScript Modules
This commit is contained in:
parent
21bd300632
commit
6193324e89
5 changed files with 63 additions and 5 deletions
6
index.js
6
index.js
|
@ -1,12 +1,12 @@
|
|||
import { initWideAngle } from "./src";
|
||||
import { initWideAngle } from "./dist";
|
||||
import { ref } from 'vue';
|
||||
|
||||
export default {
|
||||
install: async (app, options) => {
|
||||
const waaRef = ref()
|
||||
app.provide('waa', waaRef);
|
||||
app.provide('waa', waaRef);
|
||||
initWideAngle(options)
|
||||
.then(waa => {
|
||||
.then(waa => {
|
||||
waaRef.value = waa;
|
||||
console.debug("[WAA] Wide Angle Analytics instance available");
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue