We are migrating our CRA + SuperTokens app to Vite + SuperTokens. This tool (https://github.com/bhbs/viject) gave us a lot of head start with this migration. One issue we're having to resolve ourselves is SuperTokens' use of CJS dynamic require(). Any plans to move SuperTokens React variant (examples and create-supertokens-app) to use Vite?
r
rp_st
03/29/2024, 5:35 AM
hey @gopi_65986 not at the moment. But if you open an issue about it, and enough people show interest, we can work on it.
In the meantime, i think you can use .js in the imports to make it work
g
gopi_65986
04/01/2024, 3:19 AM
import * as reactRouterDom from "react-router-dom";