I'm using the library for a while now in some simple JS projects, But I want to include it into my Vue project. Is there a way to do this? Can't get it working this way:
import * as WebSQL from './WebSQL';
var db = WebSQL('test');
Object.defineProperty(Vue.prototype, '$db', { value: db });
I keep getting: Can't find variable: WebSQL (WebSQL.js:429)
I'm using the library for a while now in some simple JS projects, But I want to include it into my Vue project. Is there a way to do this? Can't get it working this way:
I keep getting:
Can't find variable: WebSQL (WebSQL.js:429)