Closed kevincox closed 1 year ago
Ah, I found the docs here: https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require
It appears to be some compatibility for AMD and CommonJS modules. However it doesn't seem to work at all for ECMAScript modules.
Oddly enough reloading my long-running typescript compiler fixed the issue. So I guess the current code is fine and just a bad state in the compiler? Strange.
Version: 2.0.0-beta.6
When importing
import RemoteStorage from "remotestoragejs"
in a Svelte app I get many errors from typescript in the form of:I must admit that I have not seen this syntax before but it seems that what is being done could be accomplished with
export default RemoteStorage
and similar.