ebidel / idb.filesystem.js

HTML5 Filesystem API polyfill using IndexedDB
https://www.npmjs.com/package/idb.filesystem.js
Other
487 stars 46 forks source link

How to use with ES6? #47

Open melanke opened 7 years ago

melanke commented 7 years ago

I've try with require('idb.filesystem.js') but got this error when compiling to production:

Unexpected token: name <IDB_SUPPORTS_BLOB> [./node_modules/idb.filesystem.js/src/idb.filesystem.js:43,0][dist/js/index.bnc29048283cn82.js:119436,4]
ebidel commented 7 years ago

idb.filesystem.js isn't provided as an es6 module. It was developed many years ago :)

Happy to take a PR that makes that work though.