Had some issues with better-sqllite as it doesn't build natively on electron-gyp due to incompatibility with the V8 headers. C++17 vs C++20 for better-sqlite inclusion in our project.
. We are using commonjs and es2021 in our tsconfig. We recieve PACKAGE_PATH_NOT_EXPORTED when trying to include anything in our webpack config that's missing the proper polyfil, obviously. The issue wasn't that better-sql didn't have a commonjs polyfill, its the version of c++ it builds with being incompatible with the V8 headers. Whoops!
By the way: We target Windows, Mac, and Linux. Unfortunately due to
, no redis. Well yes, but Microsoft dropped official support for redis long ago (still exists, but abandoned) Trying to find the right sqllite or similar cross-platform, compatible db package for our prod preloads in its current configuration. IndexedDB is way too slow for us, btw. Iterating many records.
So if we haven't found the right one suggest to us some compatible recommendations with electron-gyp and its V8 headers you know to build natively and neatly on all 3. Thanks! -- 🐉