So I just updated https://github.com/ITenthusiasm/...
# contributing
i
So I just updated https://github.com/ITenthusiasm/remix-supertokens to use the latest version of Remix (version 2). Since they use ESM by default now, I also updated the project to use ESM. Unfortunately, this causes some gotchas when it comes to importing things from SuperTokens. For example:
Copy code
import Session from "supertokens-node/recipe/session"
Fails for ESM. Instead,
Copy code
import Session from "supertokens-node/recipe/session/index.js"
must be used. It might be worth adding an
exports
field to
package.json
in
supertokens-node
(see https://nodejs.org/api/esm.html#import-specifiers) to make the DX easier/more intuitive. Very likely, more devs will end up using ESM in the future. It's just a question of when the "boom" will come in. The "boom" doesn't seem to be now, but more JS frameworks are starting to migrate to ESM, it seems.
4 Views