yjs / y-indexeddb

IndexedDB database adapter for Yjs
https://docs.yjs.dev/ecosystem/database-provider/y-indexeddb
Other
196 stars 30 forks source link

CommonJS require doesn't work #7

Closed brechtcs closed 4 years ago

brechtcs commented 4 years ago

This is not really a blocking issue, but for quick prototyping I often still use CommonJS instead of ESM imports. For all the other yjs modules I've used so far this works fine, but with this one Browserify is giving me the dreaded ParseError: 'import' and 'export' may appear only with 'sourceType: module'.

dmonad commented 4 years ago

Hi @brechtcs , this is fixed in v9.0.3. Thanks for the PR!