Open pablomaurer opened 6 years ago
Ok switched back to custom bundling.. and document what I know so far.
module-system:
rx-pouch/index.js
rx-pouch/index-es.js
importing (also for all plugins):
var PouchDB = require('pouchdb-core');
var PouchDB = require('pouchdb-core').default;
Related Issues:
For now replace in index-es.js with this:
var PouchDB = require('pouchdb-core').default;
var PouchHttp = require('pouchdb-adapter-http').default;
var PouchMapReduce = require('pouchdb-mapreduce').default;
var PouchReplication = require('pouchdb-replication').default;
PouchDB.plugin(PouchHttp);
PouchDB.plugin(PouchMapReduce);
PouchDB.plugin(PouchReplication);
you need do import like
pouchdb/dist/pouchdb
else webpack goes for the files inlib
, where it will somewhere include stuff not meant for the browser?also have to switch back to custom bundling.. But then user using webpack will still have those pouchdb issues.
So best try to fix it in pouchdb.