importing 'litefs-js/remix' in ESM project ("type": "module" in package.json ) is not working
error TS2307: Cannot find module 'litefs-js/remix' or its corresponding type declarations.
10 import { ensureInstance } from 'litefs-js/remix'
~~~~~~~~~~~~~~~~~
importing 'litefs-js/remix' in ESM project (
"type": "module"
inpackage.json
) is not workingadd this to
package.json
to fix this issuealthough the above patch fixed this issue, maybe it is better to add build script to build both dist/esm and dist/cjs each with its own .d.ts files.