Open multimeric opened 1 year ago
These packages aren't really intended for public consumption, and I'm surprised they're being published to npm. I assume that's why they're a bit odd?
Probably, but I do think they're useful packages to have on npm.
I second the point that @duckdb/react-duckdb
would be useful to have on NPM in their compiled form. The implementation looks very clean, minimal, and generic.
Otherwise, any user who wants to use DuckDB in a React application will end-up re-implementing the wheel in order to instantiate the database and access it from within sub-components.
It seems that the
@duckdb/react-duckdb*
npm packages contain raw typescript source code, which is fairly unusual. It means that consumers of the packages need to enable the typescript loader fornode_modules
, which is quite computationally expensive.You can see this here on npm:
Interestingly, the
@duckdb/duckdb-wasm*
packages are correctly compiled to JS. Could you please pre-compile these packages to standard JavaScript in future versions? Thanks.