Open mobidev111 opened 9 years ago
Thanks for the work-around of your 1st code. I needed it since i'm using webpack.
I think I noticed a small mistake tho, on first line ?
var persistence = require('persistencejs/lib/persistence').persistence;
instead of
var persistence = require('persistencejs');
The persistence.js library is not available as AMD compatible module.
Use case: use the websql adapter within a client-side cordova app with angular and browserify package manager.
For example, persistence.js requires a dirty hack to use it with browserify:
An AMD-compatible wrapper solves this - see the following code showing the principle: